WebApplication
, ServletContext
public class DefaultWebApplication extends Object implements WebApplication
The filters
field is backed by a LinkedHashMap so we get an
insertion-order key set. If you change this, be aware that methods using this
field should be changed to account for that.
The servlets
field is backed by a LinkedHashMap so we get an
insertion-order key set. If you change this, be aware that methods using this
field should be changed to account for that.
Modifier and Type | Field | Description |
---|---|---|
protected AnnotationManager |
annotationManager |
Stores the annotation manager.
|
protected Map<String,Object> |
attributes |
Stores the attributes.
|
protected ClassLoader |
classLoader |
Stores the class loader.
|
protected List<ServletContextAttributeListener> |
contextAttributeListeners |
Stores the servlet context attribute listeners.
|
protected ArrayList<ServletContextListener> |
contextListeners |
Stores the servlet context listeners.
|
protected String |
contextPath |
Stores the context path.
|
protected boolean |
distributable |
Stores the boolean flag indicating if the web application is distributable.
|
protected static int |
ERROR |
Stores the ERROR constant.
|
protected Map<Integer,String> |
errorPagesByCode |
|
protected Map<String,String> |
errorPagesByException |
|
protected Map<String,DefaultFilterEnvironment> |
filters |
Stores the filters.
|
protected HttpRequestManager |
httpRequestManager |
Stores the request manager.
|
protected HttpSessionManager |
httpSessionManager |
Stores the session manager.
|
protected static int |
INITIALIZED |
Stores the INITIALIZED constant.
|
protected List<ServletContainerInitializer> |
initializers |
Stores the servlet container initializers.
|
protected Map<String,String> |
initParameters |
Stores the init parameters.
|
protected JspManager |
jspManager |
Stores the JSP manager.
|
protected LoggingManager |
loggingManager |
Stores the logging manager.
|
protected MimeTypeManager |
mimeTypeManager |
Stores the mime type manager.
|
protected ObjectInstanceManager |
objectInstanceManager |
Stores the object instance manager.
|
protected String |
requestCharacterEncoding |
Stores the request character encoding.
|
protected List<ServletRequestListener> |
requestListeners |
Stores the servlet request listeners.
|
protected Map<ServletRequest,ServletResponse> |
requests |
Stores the active requests and the associated response.
|
protected ResourceManager |
resourceManager |
Stores the resource manager.
|
protected String |
responseCharacterEncoding |
Stores the response character encoding.
|
protected Map<ServletResponse,ServletRequest> |
responses |
Stores the active responses and the associated requests.
|
protected SecurityManager |
securityManager |
Stores the security manager.
|
protected static int |
SERVICING |
Stores the SERVICING constant.
|
protected String |
servletContextName |
Stores the servlet context name.
|
protected Map<String,DefaultServletEnvironment> |
servlets |
Stores the servlets.
|
protected static int |
SETUP |
Stores the SETUP constant.
|
protected int |
status |
Stores the status.
|
protected String |
virtualServerName |
Stores the virtual server name.
|
protected WebApplicationRequestMapper |
webApplicationRequestMapper |
Stores the web application request mapper.
|
ORDERED_LIBS, TEMPDIR
Constructor | Description |
---|---|
DefaultWebApplication() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addErrorPage(int code,
String location) |
Adds an error page to be forwarded to on the given HTTP status code
|
void |
addErrorPage(String exception,
String location) |
Adds an error page to be forwarded to on the given exception
|
FilterRegistration.Dynamic |
addFilter(String filterName,
Class<? extends Filter> filterClass) |
Add the filter.
|
FilterRegistration.Dynamic |
addFilter(String filterName,
String className) |
Add the filter.
|
FilterRegistration.Dynamic |
addFilter(String filterName,
Filter filter) |
Add the filter.
|
Set<String> |
addFilterMapping(String filterName,
boolean isMatchAfter,
String... urlPatterns) |
Add a mapping for the given filter.
|
Set<String> |
addFilterMapping(String filterName,
String... urlPatterns) |
Add a mapping for the given filter.
|
void |
addInitializer(String className) |
Add a servlet container initializer.
|
void |
addInitializer(ServletContainerInitializer servletContainerInitializer) |
Add a servlet container initializer.
|
ServletRegistration.Dynamic |
addJspFile(String servletName,
String jspFile) |
Add a JSP file.
|
void |
addListener(Class<? extends EventListener> type) |
Add the listener.
|
void |
addListener(String className) |
Add listener.
|
<T extends EventListener> |
addListener(T listener) |
Add the listener.
|
void |
addResource(Resource resource) |
Add the resource.
|
ServletRegistration.Dynamic |
addServlet(String servletName,
Class<? extends Servlet> servletClass) |
Add the servlet.
|
ServletRegistration.Dynamic |
addServlet(String servletName,
String className) |
Add the servlet.
|
ServletRegistration.Dynamic |
addServlet(String servletName,
Servlet servlet) |
Add the servlet.
|
Set<String> |
addServletMapping(String servletName,
String... urlPatterns) |
Add the servlet mapping.
|
<T extends Filter> |
createFilter(Class<T> filterClass) |
Create the filter.
|
<T extends EventListener> |
createListener(Class<T> clazz) |
Create the listener.
|
<T extends Servlet> |
createServlet(Class<T> servletClass) |
Create the servlet.
|
void |
declareRoles(String... roles) |
Declare roles.
|
void |
destroy() |
Destroy the web application.
|
protected List<DefaultFilterEnvironment> |
findFilterEnvironments(HttpServletRequest request) |
Find the filter environments.
|
AnnotationManager |
getAnnotationManager() |
Gets the annotation manager.
|
Object |
getAttribute(String name) |
Get the attribute.
|
Enumeration<String> |
getAttributeNames() |
Get the attribute names.
|
ClassLoader |
getClassLoader() |
Get the class loader.
|
ServletContext |
getContext(String uripath) |
Get the servlet context for the given uripath.
|
String |
getContextPath() |
Get the context path.
|
Set<SessionTrackingMode> |
getDefaultSessionTrackingModes() |
Get the default session tracking modes.
|
boolean |
getDenyUncoveredHttpMethods() |
Are we denying uncovered HTTP methods.
|
int |
getEffectiveMajorVersion() |
Get the effective major version.
|
int |
getEffectiveMinorVersion() |
Get the effective minor version.
|
Set<SessionTrackingMode> |
getEffectiveSessionTrackingModes() |
Get the effective tracking modes.
|
FilterRegistration |
getFilterRegistration(String filterName) |
Get the filter registration.
|
Map<String,? extends FilterRegistration> |
getFilterRegistrations() |
Get the filter registrations.
|
HttpRequestManager |
getHttpRequestManager() |
Get the HttpRequestManager.
|
HttpSessionManager |
getHttpSessionManager() |
Get the session manager.
|
String |
getInitParameter(String name) |
Get the init parameter.
|
Enumeration<String> |
getInitParameterNames() |
Get the init parameter names.
|
JspConfigDescriptor |
getJspConfigDescriptor() |
Get the JSP config descriptor.
|
int |
getMajorVersion() |
Get the major version.
|
Collection<String> |
getMappings(String servletName) |
Get the servlet mappings for the given servlet.
|
String |
getMimeType(String filename) |
Get the mime type.
|
MimeTypeManager |
getMimeTypeManager() |
Get the mime type manager.
|
int |
getMinorVersion() |
Get the minor version.
|
RequestDispatcher |
getNamedDispatcher(String name) |
Get the name request dispatcher.
|
protected RequestDispatcher |
getNamedDispatcher(String name,
String path) |
Get the name request dispatcher.
|
ObjectInstanceManager |
getObjectInstanceManager() |
Get the DependencyInjectionManager.
|
String |
getRealPath(String path) |
Get the real path.
|
ServletRequest |
getRequest(ServletResponse response) |
Get the request associated with the response.
|
String |
getRequestCharacterEncoding() |
Get the default request character encoding.
|
RequestDispatcher |
getRequestDispatcher(String path) |
Get the request dispatcher.
|
URL |
getResource(String location) |
Get the resource.
|
InputStream |
getResourceAsStream(String location) |
Get the resource as a stream.
|
Set<String> |
getResourcePaths(String path) |
Get the resource paths.
|
ServletResponse |
getResponse(ServletRequest request) |
Get the response.
|
String |
getResponseCharacterEncoding() |
Get the default response character encoding.
|
SecurityManager |
getSecurityManager() |
Get the security manager.
|
String |
getServerInfo() |
Get the server info.
|
Servlet |
getServlet(String name) |
Deprecated.
|
String |
getServletContextName() |
Get the servlet context name (aka display-name).
|
Enumeration<String> |
getServletNames() |
Deprecated.
|
ServletRegistration |
getServletRegistration(String servletName) |
Get the servlet registration.
|
Map<String,? extends ServletRegistration> |
getServletRegistrations() |
Get the servlet registrations.
|
Enumeration<Servlet> |
getServlets() |
Deprecated.
|
SessionCookieConfig |
getSessionCookieConfig() |
Get the session cookie config.
|
int |
getSessionTimeout() |
Get the default session timeout.
|
String |
getVirtualServerName() |
Get the virtual server name.
|
void |
initialize() |
Initialize the web application.
|
void |
initializeFilters() |
Initialize the filters.
|
void |
initializeFinish() |
Finish the initialization.
|
void |
initializeInitializers() |
Initialize the servlet container initializers.
|
void |
initializeServlets() |
Initialize the servlets.
|
boolean |
isDistributable() |
Is the web application distributable.
|
void |
linkRequestAndResponse(ServletRequest request,
ServletResponse response) |
Link the request and response.
|
void |
log(Exception exception,
String message) |
Deprecated.
|
void |
log(String message) |
Log a message.
|
void |
log(String message,
Throwable throwable) |
Log a message.
|
void |
removeAttribute(String name) |
Remove the attribute with the given name.
|
void |
service(ServletRequest request,
ServletResponse response) |
Service the request using this web application.
|
void |
setAnnotationManager(AnnotationManager annotationManager) |
Sets the annotation manager.
|
void |
setAttribute(String name,
Object value) |
Set the attribute.
|
void |
setClassLoader(ClassLoader classLoader) |
Set the class-loader.
|
void |
setContextPath(String contextPath) |
Set the context path.
|
void |
setDenyUncoveredHttpMethods(boolean denyUncoveredHttpMethods) |
Set if we are denying uncovered HTTP methods.
|
void |
setDistributable(boolean distributable) |
Set if the web application is distributable.
|
void |
setHttpRequestManager(HttpRequestManager httpRequestManager) |
Set the HTTP request manager.
|
void |
setHttpSessionManager(HttpSessionManager httpSessionManager) |
Set the HTTP session manager.
|
boolean |
setInitParameter(String name,
String value) |
Set the init parameter.
|
void |
setJspManager(JspManager jspManager) |
Set the JSP manager.
|
void |
setLoggingManager(LoggingManager loggingManager) |
Set the logging manager.
|
void |
setMimeTypeManager(MimeTypeManager mimeTypeManager) |
Set the mimeType manager.
|
void |
setObjectInstanceManager(ObjectInstanceManager objectInstanceManager) |
Set the object instance manager.
|
void |
setRequestCharacterEncoding(String requestCharacterEncoding) |
Set the default request character encoding.
|
void |
setResourceManager(ResourceManager resourceManager) |
Set the resource manager.
|
void |
setResponseCharacterEncoding(String responseCharacterEncoding) |
Set the default response character encoding.
|
void |
setSecurityManager(SecurityManager securityManager) |
Set the security manager.
|
void |
setServletContextName(String servletContextName) |
Set the servlet context name.
|
void |
setSessionTimeout(int sessionTimeout) |
Set the default session timeout.
|
void |
setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes) |
Set the session tracking modes.
|
void |
setVirtualServerName(String virtualServerName) |
Set the virtual server name.
|
void |
setWebApplicationRequestMapper(WebApplicationRequestMapper webApplicationRequestMapper) |
Set the web application request mapper.
|
void |
start() |
Start servicing.
|
void |
stop() |
Stop servicing.
|
void |
unlinkRequestAndResponse(ServletRequest request,
ServletResponse response) |
Unlink the request and response.
|
protected void |
verifyState(int desiredStatus,
String message) |
Verify the web application state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServletContextId
protected static final int INITIALIZED
protected static final int ERROR
protected static final int SETUP
protected static final int SERVICING
protected ClassLoader classLoader
protected String contextPath
protected boolean distributable
protected String servletContextName
protected String virtualServerName
protected String responseCharacterEncoding
protected int status
protected final Map<ServletRequest,ServletResponse> requests
protected final Map<ServletResponse,ServletRequest> responses
protected final List<ServletContainerInitializer> initializers
protected final Map<String,DefaultServletEnvironment> servlets
protected final Map<String,DefaultFilterEnvironment> filters
protected final List<ServletContextAttributeListener> contextAttributeListeners
protected final ArrayList<ServletContextListener> contextListeners
protected final List<ServletRequestListener> requestListeners
protected ObjectInstanceManager objectInstanceManager
protected AnnotationManager annotationManager
protected ResourceManager resourceManager
protected HttpSessionManager httpSessionManager
protected SecurityManager securityManager
protected JspManager jspManager
protected LoggingManager loggingManager
protected HttpRequestManager httpRequestManager
protected MimeTypeManager mimeTypeManager
protected String requestCharacterEncoding
protected WebApplicationRequestMapper webApplicationRequestMapper
public FilterRegistration.Dynamic addFilter(String filterName, String className)
addFilter
in interface ServletContext
filterName
- the filter name.className
- the class name.public FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass)
addFilter
in interface ServletContext
filterName
- the filter name.filterClass
- the filter class.ServletContext.addFilter(java.lang.String, java.lang.Class)
public FilterRegistration.Dynamic addFilter(String filterName, Filter filter)
addFilter
in interface ServletContext
filterName
- the filter name.filter
- the filter.public Set<String> addFilterMapping(String filterName, String... urlPatterns)
WebApplication
addFilterMapping
in interface WebApplication
filterName
- the filter name.urlPatterns
- the URL patterns.FilterRegistration.addMappingForUrlPatterns(EnumSet, boolean,
String...)
public Set<String> addFilterMapping(String filterName, boolean isMatchAfter, String... urlPatterns)
WebApplication
addFilterMapping
in interface WebApplication
filterName
- the filter name.isMatchAfter
- true to call the filter this mapping applies to after declared ones, false to call it before declared ones.urlPatterns
- the URL patterns.FilterRegistration.addMappingForUrlPatterns(EnumSet, boolean,
String...)
public void addInitializer(String className)
addInitializer
in interface WebApplication
className
- the class name.public void addInitializer(ServletContainerInitializer servletContainerInitializer)
WebApplication
addInitializer
in interface WebApplication
servletContainerInitializer
- the servletContainerInitializer
instancepublic ServletRegistration.Dynamic addJspFile(String servletName, String jspFile)
addJspFile
in interface ServletContext
servletName
- the name of the servlet.jspFile
- the JSP file.public void addListener(String className)
addListener
in interface ServletContext
className
- the class name.public void addListener(Class<? extends EventListener> type)
addListener
in interface ServletContext
type
- the type.public <T extends EventListener> void addListener(T listener)
addListener
in interface ServletContext
T
- the type.listener
- the listenerpublic void addResource(Resource resource)
addResource
in interface WebApplication
resource
- the resource.public ServletRegistration.Dynamic addServlet(String servletName, Class<? extends Servlet> servletClass)
addServlet
in interface ServletContext
servletName
- the servlet name.servletClass
- the class type.public ServletRegistration.Dynamic addServlet(String servletName, String className)
addServlet
in interface ServletContext
servletName
- the servlet name.className
- the class name.public ServletRegistration.Dynamic addServlet(String servletName, Servlet servlet)
addServlet
in interface ServletContext
servletName
- the servlet name.servlet
- the servlet.public Set<String> addServletMapping(String servletName, String... urlPatterns)
addServletMapping
in interface WebApplication
servletName
- the servlet name.urlPatterns
- the URL patterns.ServletRegistration.addMapping(String...)
public void addErrorPage(int code, String location)
WebApplication
addErrorPage
in interface WebApplication
code
- the HTTP code for which the error page is to be invokedlocation
- the location of the error pagepublic void addErrorPage(String exception, String location)
WebApplication
addErrorPage
in interface WebApplication
exception
- the exception for which the error page is to be invokedlocation
- the location of the error pagepublic <T extends Filter> T createFilter(Class<T> filterClass) throws ServletException
createFilter
in interface ServletContext
T
- the return type.filterClass
- the filter class.ServletException
- when a Filter error occurs.public <T extends EventListener> T createListener(Class<T> clazz) throws ServletException
createListener
in interface ServletContext
T
- the type.clazz
- the class of the listener to create.ServletException
- when it fails to create the listener.public <T extends Servlet> T createServlet(Class<T> servletClass) throws ServletException
createServlet
in interface ServletContext
T
- the return type.servletClass
- the servlet class.ServletException
- when a Servlet error occurs.public void declareRoles(String... roles)
declareRoles
in interface ServletContext
roles
- the roles.public void destroy()
destroy
in interface WebApplication
protected List<DefaultFilterEnvironment> findFilterEnvironments(HttpServletRequest request)
request
- the HTTP servlet request.public Object getAttribute(String name)
getAttribute
in interface ServletContext
name
- the attribute name.public Enumeration<String> getAttributeNames()
getAttributeNames
in interface ServletContext
public boolean getDenyUncoveredHttpMethods()
getDenyUncoveredHttpMethods
in interface WebApplication
public ClassLoader getClassLoader()
getClassLoader
in interface ServletContext
public ServletContext getContext(String uripath)
getContext
in interface ServletContext
uripath
- the uripath.public String getContextPath()
getContextPath
in interface ServletContext
public Set<SessionTrackingMode> getDefaultSessionTrackingModes()
getDefaultSessionTrackingModes
in interface ServletContext
public ObjectInstanceManager getObjectInstanceManager()
getObjectInstanceManager
in interface WebApplication
public int getEffectiveMajorVersion()
getEffectiveMajorVersion
in interface ServletContext
public int getEffectiveMinorVersion()
getEffectiveMinorVersion
in interface ServletContext
public Set<SessionTrackingMode> getEffectiveSessionTrackingModes()
getEffectiveSessionTrackingModes
in interface ServletContext
public FilterRegistration getFilterRegistration(String filterName)
getFilterRegistration
in interface ServletContext
filterName
- the filter name.public Map<String,? extends FilterRegistration> getFilterRegistrations()
getFilterRegistrations
in interface ServletContext
public String getInitParameter(String name)
getInitParameter
in interface ServletContext
name
- the init parameter name.public Enumeration<String> getInitParameterNames()
getInitParameterNames
in interface ServletContext
public JspConfigDescriptor getJspConfigDescriptor()
getJspConfigDescriptor
in interface ServletContext
public int getMajorVersion()
getMajorVersion
in interface ServletContext
public Collection<String> getMappings(String servletName)
getMappings
in interface WebApplication
servletName
- the name of the servlet.ServletRegistration.getMappings()
public String getMimeType(String filename)
getMimeType
in interface ServletContext
filename
- the filename.public MimeTypeManager getMimeTypeManager()
getMimeTypeManager
in interface WebApplication
public int getMinorVersion()
getMinorVersion
in interface ServletContext
public RequestDispatcher getNamedDispatcher(String name)
getNamedDispatcher
in interface ServletContext
name
- the name.protected RequestDispatcher getNamedDispatcher(String name, String path)
name
- the name.path
- the path.public String getRealPath(String path)
getRealPath
in interface ServletContext
path
- the pathpublic ServletRequest getRequest(ServletResponse response)
getRequest
in interface WebApplication
response
- the response.public String getRequestCharacterEncoding()
getRequestCharacterEncoding
in interface ServletContext
public RequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface ServletContext
path
- the path.public String getResponseCharacterEncoding()
getResponseCharacterEncoding
in interface ServletContext
public URL getResource(String location) throws MalformedURLException
getResource
in interface ServletContext
location
- the location.MalformedURLException
- when the URL is malformed.public InputStream getResourceAsStream(String location)
getResourceAsStream
in interface ServletContext
location
- the resource locationpublic Set<String> getResourcePaths(String path)
getResourcePaths
in interface ServletContext
path
- the path.public ServletResponse getResponse(ServletRequest request)
getResponse
in interface WebApplication
request
- the request.public SecurityManager getSecurityManager()
getSecurityManager
in interface WebApplication
public AnnotationManager getAnnotationManager()
WebApplication
getAnnotationManager
in interface WebApplication
public void setAnnotationManager(AnnotationManager annotationManager)
WebApplication
setAnnotationManager
in interface WebApplication
annotationManager
- the annotation managerpublic String getServerInfo()
getServerInfo
in interface ServletContext
public Servlet getServlet(String name) throws ServletException
getServlet
in interface ServletContext
name
- the name of the servlet.ServletException
- when a Servlet error occurs.public String getServletContextName()
getServletContextName
in interface ServletContext
public Enumeration<String> getServletNames()
getServletNames
in interface ServletContext
public ServletRegistration getServletRegistration(String servletName)
getServletRegistration
in interface ServletContext
servletName
- the servlet name.public Map<String,? extends ServletRegistration> getServletRegistrations()
getServletRegistrations
in interface ServletContext
public Enumeration<Servlet> getServlets()
getServlets
in interface ServletContext
public SessionCookieConfig getSessionCookieConfig()
getSessionCookieConfig
in interface ServletContext
public int getSessionTimeout()
getSessionTimeout
in interface ServletContext
public HttpSessionManager getHttpSessionManager()
getHttpSessionManager
in interface WebApplication
public String getVirtualServerName()
getVirtualServerName
in interface ServletContext
public void initialize()
initialize
in interface WebApplication
public void initializeFinish()
initializeFinish
in interface WebApplication
public void initializeFilters()
initializeFilters
in interface WebApplication
public void initializeInitializers()
initializeInitializers
in interface WebApplication
public void initializeServlets()
initializeServlets
in interface WebApplication
public boolean isDistributable()
isDistributable
in interface WebApplication
public void linkRequestAndResponse(ServletRequest request, ServletResponse response)
linkRequestAndResponse
in interface WebApplication
request
- the request.response
- the response.public void log(Exception exception, String message)
log
in interface ServletContext
exception
- the exception.message
- the message.public void log(String message, Throwable throwable)
log
in interface ServletContext
message
- the message.throwable
- the throwable.public void log(String message)
log
in interface ServletContext
message
- the message.public void removeAttribute(String name)
removeAttribute
in interface ServletContext
name
- the name.public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
service
in interface WebApplication
request
- the servlet request.response
- the servlet response.IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.public void setAttribute(String name, Object value)
setAttribute
in interface ServletContext
name
- the attribute name.value
- the attribute value.public void setClassLoader(ClassLoader classLoader)
setClassLoader
in interface WebApplication
classLoader
- the class loader.public void setContextPath(String contextPath)
setContextPath
in interface WebApplication
contextPath
- the context path.public void setDenyUncoveredHttpMethods(boolean denyUncoveredHttpMethods)
setDenyUncoveredHttpMethods
in interface WebApplication
denyUncoveredHttpMethods
- the boolean value.public void setDistributable(boolean distributable)
setDistributable
in interface WebApplication
distributable
- the boolean value.public void setHttpSessionManager(HttpSessionManager httpSessionManager)
setHttpSessionManager
in interface WebApplication
httpSessionManager
- the HTTP session manager.public HttpRequestManager getHttpRequestManager()
WebApplication
getHttpRequestManager
in interface WebApplication
public void setHttpRequestManager(HttpRequestManager httpRequestManager)
WebApplication
setHttpRequestManager
in interface WebApplication
httpRequestManager
- the HTTP request manager.public boolean setInitParameter(String name, String value)
setInitParameter
in interface ServletContext
name
- the name.value
- the value.public void setJspManager(JspManager jspManager)
setJspManager
in interface WebApplication
jspManager
- the JSP manager.public void setLoggingManager(LoggingManager loggingManager)
setLoggingManager
in interface WebApplication
loggingManager
- the logging manager.public void setMimeTypeManager(MimeTypeManager mimeTypeManager)
setMimeTypeManager
in interface WebApplication
mimeTypeManager
- the mimeType manager.public void setObjectInstanceManager(ObjectInstanceManager objectInstanceManager)
setObjectInstanceManager
in interface WebApplication
objectInstanceManager
- the object instance manager.public void setRequestCharacterEncoding(String requestCharacterEncoding)
setRequestCharacterEncoding
in interface ServletContext
requestCharacterEncoding
- the default request character encoding.public void setResourceManager(ResourceManager resourceManager)
setResourceManager
in interface WebApplication
resourceManager
- the resource manager.public void setResponseCharacterEncoding(String responseCharacterEncoding)
setResponseCharacterEncoding
in interface ServletContext
responseCharacterEncoding
- the default response character encoding.public void setSecurityManager(SecurityManager securityManager)
setSecurityManager
in interface WebApplication
securityManager
- the security manager.public void setServletContextName(String servletContextName)
setServletContextName
in interface WebApplication
servletContextName
- the servlet context name.public void setSessionTrackingModes(Set<SessionTrackingMode> sessionTrackingModes)
setSessionTrackingModes
in interface ServletContext
sessionTrackingModes
- the session tracking modes.public void setSessionTimeout(int sessionTimeout)
setSessionTimeout
in interface ServletContext
sessionTimeout
- the default session timeout.public void setVirtualServerName(String virtualServerName)
virtualServerName
- the virtual server name.public void setWebApplicationRequestMapper(WebApplicationRequestMapper webApplicationRequestMapper)
setWebApplicationRequestMapper
in interface WebApplication
webApplicationRequestMapper
- the web application request mapper.public void start()
start
in interface WebApplication
public void stop()
stop
in interface WebApplication
public void unlinkRequestAndResponse(ServletRequest request, ServletResponse response)
unlinkRequestAndResponse
in interface WebApplication
request
- the request.response
- the response.protected void verifyState(int desiredStatus, String message)
desiredStatus
- the desired status.message
- the message.Copyright © 2020 Piranha Cloud. All rights reserved.