Package org.eclipse.jetty.servlet
Class ServletContextHandler.Context
java.lang.Object
org.eclipse.jetty.util.AttributesMap
org.eclipse.jetty.server.handler.ContextHandler.StaticContext
org.eclipse.jetty.server.handler.ContextHandler.Context
org.eclipse.jetty.servlet.ServletContextHandler.Context
- All Implemented Interfaces:
javax.servlet.ServletContext
,Attributes
,Dumpable
- Direct Known Subclasses:
WebAppContext.Context
- Enclosing class:
- ServletContextHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Wrapper
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Field Summary
Fields inherited from class org.eclipse.jetty.server.handler.ContextHandler.Context
_enabled, _extendedListenerTypes
Fields inherited from interface javax.servlet.ServletContext
ORDERED_LIBS, TEMPDIR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.FilterRegistration.Dynamic
javax.servlet.FilterRegistration.Dynamic
javax.servlet.FilterRegistration.Dynamic
javax.servlet.ServletRegistration.Dynamic
addJspFile
(String servletName, String jspFile) void
addListener
(Class<? extends EventListener> listenerClass) void
addListener
(String className) <T extends EventListener>
voidaddListener
(T t) javax.servlet.ServletRegistration.Dynamic
addServlet
(String servletName, Class<? extends javax.servlet.Servlet> servletClass) javax.servlet.ServletRegistration.Dynamic
addServlet
(String servletName, String className) javax.servlet.ServletRegistration.Dynamic
addServlet
(String servletName, javax.servlet.Servlet servlet) <T extends javax.servlet.Filter>
TcreateFilter
(Class<T> clazz) <T> T
createInstance
(Class<T> clazz) <T> T
createInstance
(BaseHolder<T> holder) <T extends EventListener>
TcreateListener
(Class<T> clazz) <T extends javax.servlet.Servlet>
TcreateServlet
(Class<T> clazz) void
declareRoles
(String... roleNames) <T extends javax.servlet.Filter>
voiddestroyFilter
(T f) <T extends javax.servlet.Servlet>
voiddestroyServlet
(T s) Set<javax.servlet.SessionTrackingMode>
Set<javax.servlet.SessionTrackingMode>
javax.servlet.FilterRegistration
getFilterRegistration
(String filterName) getInitParameter
(String name) javax.servlet.descriptor.JspConfigDescriptor
javax.servlet.RequestDispatcher
getNamedDispatcher
(String name) javax.servlet.ServletRegistration
getServletRegistration
(String servletName) javax.servlet.SessionCookieConfig
int
boolean
setInitParameter
(String name, String value) void
setJspConfigDescriptor
(javax.servlet.descriptor.JspConfigDescriptor d) void
setRequestCharacterEncoding
(String encoding) void
setResponseCharacterEncoding
(String encoding) void
setSessionTimeout
(int sessionTimeout) void
setSessionTrackingModes
(Set<javax.servlet.SessionTrackingMode> sessionTrackingModes) Methods inherited from class org.eclipse.jetty.server.handler.ContextHandler.Context
checkListener, getAttribute, getAttributeNames, getClassLoader, getContext, getContextHandler, getContextPath, getInitParameterNames, getMimeType, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServletContextName, getVirtualServerName, isEnabled, isExtendedListenerTypes, log, log, log, removeAttribute, setAttribute, setEnabled, setExtendedListenerTypes, toString
Methods inherited from class org.eclipse.jetty.server.handler.ContextHandler.StaticContext
getEffectiveMajorVersion, getEffectiveMinorVersion, getMajorVersion, getMinorVersion, getServerInfo, getServlet, getServletNames, getServlets, setEffectiveMajorVersion, setEffectiveMinorVersion
Methods inherited from class org.eclipse.jetty.util.AttributesMap
addAll, clearAttributes, dump, dump, getAttributeEntrySet, getAttributeNamesCopy, getAttributeNameSet, size
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getNamedDispatcher
- Specified by:
getNamedDispatcher
in interfacejavax.servlet.ServletContext
- Overrides:
getNamedDispatcher
in classContextHandler.StaticContext
-
addFilter
public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Class<? extends javax.servlet.Filter> filterClass) - Specified by:
addFilter
in interfacejavax.servlet.ServletContext
- Overrides:
addFilter
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addFilter
- Specified by:
addFilter
in interfacejavax.servlet.ServletContext
- Overrides:
addFilter
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addFilter
public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, javax.servlet.Filter filter) - Specified by:
addFilter
in interfacejavax.servlet.ServletContext
- Overrides:
addFilter
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addServlet
public javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, Class<? extends javax.servlet.Servlet> servletClass) - Specified by:
addServlet
in interfacejavax.servlet.ServletContext
- Overrides:
addServlet
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addServlet
- Specified by:
addServlet
in interfacejavax.servlet.ServletContext
- Overrides:
addServlet
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addServlet
public javax.servlet.ServletRegistration.Dynamic addServlet(String servletName, javax.servlet.Servlet servlet) - Specified by:
addServlet
in interfacejavax.servlet.ServletContext
- Overrides:
addServlet
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addJspFile
- Specified by:
addJspFile
in interfacejavax.servlet.ServletContext
- Overrides:
addJspFile
in classContextHandler.StaticContext
-
getInitParameter
- Specified by:
getInitParameter
in interfacejavax.servlet.ServletContext
- Overrides:
getInitParameter
in classContextHandler.Context
-
setInitParameter
- Specified by:
setInitParameter
in interfacejavax.servlet.ServletContext
- Overrides:
setInitParameter
in classContextHandler.Context
-
createInstance
- Overrides:
createInstance
in classContextHandler.StaticContext
- Throws:
javax.servlet.ServletException
-
createInstance
- Throws:
javax.servlet.ServletException
-
destroyFilter
public <T extends javax.servlet.Filter> void destroyFilter(T f) -
destroyServlet
public <T extends javax.servlet.Servlet> void destroyServlet(T s) -
getDefaultSessionTrackingModes
- Specified by:
getDefaultSessionTrackingModes
in interfacejavax.servlet.ServletContext
- Overrides:
getDefaultSessionTrackingModes
in classContextHandler.StaticContext
-
getEffectiveSessionTrackingModes
- Specified by:
getEffectiveSessionTrackingModes
in interfacejavax.servlet.ServletContext
- Overrides:
getEffectiveSessionTrackingModes
in classContextHandler.StaticContext
-
getFilterRegistration
- Specified by:
getFilterRegistration
in interfacejavax.servlet.ServletContext
- Overrides:
getFilterRegistration
in classContextHandler.StaticContext
-
getFilterRegistrations
- Specified by:
getFilterRegistrations
in interfacejavax.servlet.ServletContext
- Overrides:
getFilterRegistrations
in classContextHandler.StaticContext
-
getServletRegistration
- Specified by:
getServletRegistration
in interfacejavax.servlet.ServletContext
- Overrides:
getServletRegistration
in classContextHandler.StaticContext
-
getServletRegistrations
- Specified by:
getServletRegistrations
in interfacejavax.servlet.ServletContext
- Overrides:
getServletRegistrations
in classContextHandler.StaticContext
-
getSessionCookieConfig
public javax.servlet.SessionCookieConfig getSessionCookieConfig()- Specified by:
getSessionCookieConfig
in interfacejavax.servlet.ServletContext
- Overrides:
getSessionCookieConfig
in classContextHandler.StaticContext
-
setSessionTrackingModes
- Specified by:
setSessionTrackingModes
in interfacejavax.servlet.ServletContext
- Overrides:
setSessionTrackingModes
in classContextHandler.StaticContext
-
getSessionTimeout
public int getSessionTimeout()- Specified by:
getSessionTimeout
in interfacejavax.servlet.ServletContext
- Overrides:
getSessionTimeout
in classContextHandler.StaticContext
-
setSessionTimeout
public void setSessionTimeout(int sessionTimeout) - Specified by:
setSessionTimeout
in interfacejavax.servlet.ServletContext
- Overrides:
setSessionTimeout
in classContextHandler.StaticContext
-
createServlet
public <T extends javax.servlet.Servlet> T createServlet(Class<T> clazz) throws javax.servlet.ServletException - Specified by:
createServlet
in interfacejavax.servlet.ServletContext
- Overrides:
createServlet
in classContextHandler.StaticContext
- Throws:
javax.servlet.ServletException
-
createFilter
public <T extends javax.servlet.Filter> T createFilter(Class<T> clazz) throws javax.servlet.ServletException - Specified by:
createFilter
in interfacejavax.servlet.ServletContext
- Overrides:
createFilter
in classContextHandler.StaticContext
- Throws:
javax.servlet.ServletException
-
createListener
public <T extends EventListener> T createListener(Class<T> clazz) throws javax.servlet.ServletException - Specified by:
createListener
in interfacejavax.servlet.ServletContext
- Overrides:
createListener
in classContextHandler.StaticContext
- Throws:
javax.servlet.ServletException
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.Context
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.Context
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.Context
-
getJspConfigDescriptor
public javax.servlet.descriptor.JspConfigDescriptor getJspConfigDescriptor()- Specified by:
getJspConfigDescriptor
in interfacejavax.servlet.ServletContext
- Overrides:
getJspConfigDescriptor
in classContextHandler.Context
-
setJspConfigDescriptor
public void setJspConfigDescriptor(javax.servlet.descriptor.JspConfigDescriptor d) - Overrides:
setJspConfigDescriptor
in classContextHandler.Context
-
declareRoles
- Specified by:
declareRoles
in interfacejavax.servlet.ServletContext
- Overrides:
declareRoles
in classContextHandler.Context
-
getRequestCharacterEncoding
- Specified by:
getRequestCharacterEncoding
in interfacejavax.servlet.ServletContext
- Overrides:
getRequestCharacterEncoding
in classContextHandler.StaticContext
-
setRequestCharacterEncoding
- Specified by:
setRequestCharacterEncoding
in interfacejavax.servlet.ServletContext
- Overrides:
setRequestCharacterEncoding
in classContextHandler.StaticContext
-
getResponseCharacterEncoding
- Specified by:
getResponseCharacterEncoding
in interfacejavax.servlet.ServletContext
- Overrides:
getResponseCharacterEncoding
in classContextHandler.StaticContext
-
setResponseCharacterEncoding
- Specified by:
setResponseCharacterEncoding
in interfacejavax.servlet.ServletContext
- Overrides:
setResponseCharacterEncoding
in classContextHandler.StaticContext
-