Package org.thymeleaf.web.servlet
Class JavaxServletWebApplication
java.lang.Object
org.thymeleaf.web.servlet.JavaxServletWebApplication
- All Implemented Interfaces:
IWebApplication,IServletWebApplication
- Since:
- 3.1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaxServletWebApplicationbuildApplication(javax.servlet.ServletContext servletContext) buildExchange(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) getAttributeValue(String name) getResource(String path) getResourceAsStream(String path) private booleanservletContextMatches(javax.servlet.http.HttpServletRequest httpServletRequest) 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
-
Field Details
-
servletContext
private final javax.servlet.ServletContext servletContext
-
-
Constructor Details
-
JavaxServletWebApplication
JavaxServletWebApplication(javax.servlet.ServletContext servletContext)
-
-
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) -
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
-
servletContextMatches
private boolean servletContextMatches(javax.servlet.http.HttpServletRequest httpServletRequest)
-