Package org.thymeleaf.web.servlet
Class JavaxServletWebApplication
Object
org.thymeleaf.web.servlet.JavaxServletWebApplication
- All Implemented Interfaces:
IWebApplication,IServletWebApplication
- Since:
- 3.1.0
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionstatic JavaxServletWebApplicationbuildApplication(javax.servlet.ServletContext servletContext) buildExchange(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) buildExchange(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Locale locale) Builds a web exchange for the specified request and response, specifying the locale resolved for the request by the calling framework (e.g. by Spring MVC).getAttributeValue(String name) getResource(String path) getResourceAsStream(String path) voidsetAttributeValue(String name, Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.thymeleaf.web.servlet.IServletWebApplication
containsAttribute, getAllAttributeNames, getAttributeCount, getAttributeMap, removeAttribute, resourceExists
-
Method Details
-
buildApplication
public static JavaxServletWebApplication buildApplication(javax.servlet.ServletContext servletContext) -
buildExchange
public IServletWebExchange buildExchange(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) -
buildExchange
public IServletWebExchange buildExchange(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, Locale locale) Builds a web exchange for the specified request and response, specifying the locale resolved for the request by the calling framework (e.g. by Spring MVC). This will be the locale returned by
IWebExchange.getLocale().- Parameters:
httpServletRequest- the request.httpServletResponse- the response.locale- the locale resolved for the request, or null for using the locale of the request (HttpServletRequest#getLocale()).- Returns:
- the web exchange.
- Since:
- 3.1.6
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceIServletWebApplication
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceIWebApplication
-
setAttributeValue
- Specified by:
setAttributeValuein interfaceIWebApplication
-
getResourceAsStream
- Specified by:
getResourceAsStreamin interfaceIWebApplication
-
getResource
- Specified by:
getResourcein interfaceIServletWebApplication- Throws:
MalformedURLException
-
getNativeServletContextObject
- Specified by:
getNativeServletContextObjectin interfaceIServletWebApplication
-