public interface IServletContext310To400Migration extends IServletContext300To310Migration
| Modifier and Type | Method and Description |
|---|---|
default javax.servlet.ServletRegistration.Dynamic |
addJspFile(String sServletName,
String sJspFile)
Adds the servlet with the given jsp file to this servlet context.
|
default String |
getRequestCharacterEncoding()
Gets the request character encoding that are supported by default for this
ServletContext.
|
default String |
getResponseCharacterEncoding()
Gets the response character encoding that are supported by default for this
ServletContext.
|
default int |
getSessionTimeout()
Gets the session timeout in minutes that are supported by default for this
ServletContext.
|
default void |
setRequestCharacterEncoding(String sEncoding)
Sets the request character encoding for this ServletContext.
|
default void |
setResponseCharacterEncoding(String sEncoding)
Sets the response character encoding for this ServletContext.
|
default void |
setSessionTimeout(int nSessionTimeout)
Sets the session timeout in minutes for this ServletContext.
|
getVirtualServerNameaddFilter, addFilter, addFilter, addListener, addListener, addListener, addServlet, addServlet, addServlet, createFilter, createListener, createServlet, declareRoles, getAttribute, getAttributeNames, getClassLoader, getContext, getContextPath, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getInitParameter, getInitParameterNames, getJspConfigDescriptor, getMajorVersion, getMimeType, getMinorVersion, getNamedDispatcher, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, log, log, log, removeAttribute, setAttribute, setInitParameter, setSessionTrackingModesdefault javax.servlet.ServletRegistration.Dynamic addJspFile(String sServletName, String sJspFile)
The registered servlet may be further configured via the returned
ServletRegistration object.
If this ServletContext already contains a preliminary ServletRegistration for a servlet with the given servletName, it will be completed (by assigning the given jspFile to it) and returned.
sServletName - the name of the servletsJspFile - the full path to a JSP file within the web application beginning
with a `/'.IllegalStateException - if this ServletContext has already been initializedIllegalArgumentException - if servletName is null or an empty StringUnsupportedOperationException - if this ServletContext was passed to the
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent) method of a
ServletContextListener that was neither declared in
web.xml or web-fragment.xml, nor
annotated with WebListenerdefault int getSessionTimeout()
UnsupportedOperationException - if this ServletContext was passed to the
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent) method of a
ServletContextListener that was neither declared in
web.xml or web-fragment.xml, nor
annotated with WebListenerdefault void setSessionTimeout(int nSessionTimeout)
nSessionTimeout - session timeout in minutesIllegalStateException - if this ServletContext has already been initializedUnsupportedOperationException - if this ServletContext was passed to the
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent) method of a
ServletContextListener that was neither declared in
web.xml or web-fragment.xml, nor
annotated with WebListenerdefault String getRequestCharacterEncoding()
UnsupportedOperationException - if this ServletContext was passed to the
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent) method of a
ServletContextListener that was neither declared in
web.xml or web-fragment.xml, nor
annotated with WebListenerdefault void setRequestCharacterEncoding(String sEncoding)
sEncoding - request character encodingIllegalStateException - if this ServletContext has already been initializedUnsupportedOperationException - if this ServletContext was passed to the
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent) method of a
ServletContextListener that was neither declared in
web.xml or web-fragment.xml, nor
annotated with WebListenerdefault String getResponseCharacterEncoding()
UnsupportedOperationException - if this ServletContext was passed to the
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent) method of a
ServletContextListener that was neither declared in
web.xml or web-fragment.xml, nor
annotated with WebListenerdefault void setResponseCharacterEncoding(String sEncoding)
sEncoding - response character encodingIllegalStateException - if this ServletContext has already been initializedUnsupportedOperationException - if this ServletContext was passed to the
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent) method of a
ServletContextListener that was neither declared in
web.xml or web-fragment.xml, nor
annotated with WebListenerCopyright © 2016–2019 Philip Helger. All rights reserved.