Package org.thymeleaf.web.servlet
Class JakartaServletWebApplication
- java.lang.Object
-
- org.thymeleaf.web.servlet.JakartaServletWebApplication
-
- All Implemented Interfaces:
IWebApplication,IServletWebApplication
public class JakartaServletWebApplication extends java.lang.Object implements IServletWebApplication
- Since:
- 3.1.0
-
-
Field Summary
Fields Modifier and Type Field Description private jakarta.servlet.ServletContextservletContext
-
Constructor Summary
Constructors Constructor Description JakartaServletWebApplication(jakarta.servlet.ServletContext servletContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JakartaServletWebApplicationbuildApplication(jakarta.servlet.ServletContext servletContext)IServletWebExchangebuildExchange(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)java.util.Enumeration<java.lang.String>getAttributeNames()java.lang.ObjectgetAttributeValue(java.lang.String name)java.lang.ObjectgetNativeServletContextObject()java.net.URLgetResource(java.lang.String path)java.io.InputStreamgetResourceAsStream(java.lang.String path)private booleanservletContextMatches(jakarta.servlet.http.HttpServletRequest httpServletRequest)voidsetAttributeValue(java.lang.String name, java.lang.Object value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.thymeleaf.web.servlet.IServletWebApplication
containsAttribute, getAllAttributeNames, getAttributeCount, getAttributeMap, removeAttribute, resourceExists
-
-
-
-
Method Detail
-
buildApplication
public static JakartaServletWebApplication buildApplication(jakarta.servlet.ServletContext servletContext)
-
buildExchange
public IServletWebExchange buildExchange(jakarta.servlet.http.HttpServletRequest httpServletRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse)
-
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNamesin interfaceIServletWebApplication
-
getAttributeValue
public java.lang.Object getAttributeValue(java.lang.String name)
- Specified by:
getAttributeValuein interfaceIWebApplication
-
setAttributeValue
public void setAttributeValue(java.lang.String name, java.lang.Object value)- Specified by:
setAttributeValuein interfaceIWebApplication
-
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path)
- Specified by:
getResourceAsStreamin interfaceIWebApplication
-
getResource
public java.net.URL getResource(java.lang.String path) throws java.net.MalformedURLException- Specified by:
getResourcein interfaceIServletWebApplication- Throws:
java.net.MalformedURLException
-
getNativeServletContextObject
public java.lang.Object getNativeServletContextObject()
- Specified by:
getNativeServletContextObjectin interfaceIServletWebApplication
-
servletContextMatches
private boolean servletContextMatches(jakarta.servlet.http.HttpServletRequest httpServletRequest)
-
-