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
public class ServletContextHandler.Context extends ContextHandler.Context
-
-
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
-
-
Constructor Summary
Constructors Constructor Description Context()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.servlet.FilterRegistration.Dynamic
addFilter(java.lang.String filterName, java.lang.Class<? extends javax.servlet.Filter> filterClass)
javax.servlet.FilterRegistration.Dynamic
addFilter(java.lang.String filterName, java.lang.String className)
javax.servlet.FilterRegistration.Dynamic
addFilter(java.lang.String filterName, javax.servlet.Filter filter)
void
addListener(java.lang.Class<? extends java.util.EventListener> listenerClass)
void
addListener(java.lang.String className)
<T extends java.util.EventListener>
voidaddListener(T t)
javax.servlet.ServletRegistration.Dynamic
addServlet(java.lang.String servletName, java.lang.Class<? extends javax.servlet.Servlet> servletClass)
javax.servlet.ServletRegistration.Dynamic
addServlet(java.lang.String servletName, java.lang.String className)
javax.servlet.ServletRegistration.Dynamic
addServlet(java.lang.String servletName, javax.servlet.Servlet servlet)
protected <T> T
createInstance(java.lang.Class<T> clazz)
void
declareRoles(java.lang.String... roleNames)
<T extends javax.servlet.Filter>
voiddestroyFilter(T f)
<T extends javax.servlet.Servlet>
voiddestroyServlet(T s)
java.util.Set<javax.servlet.SessionTrackingMode>
getDefaultSessionTrackingModes()
java.util.Set<javax.servlet.SessionTrackingMode>
getEffectiveSessionTrackingModes()
javax.servlet.FilterRegistration
getFilterRegistration(java.lang.String filterName)
java.util.Map<java.lang.String,? extends javax.servlet.FilterRegistration>
getFilterRegistrations()
javax.servlet.descriptor.JspConfigDescriptor
getJspConfigDescriptor()
javax.servlet.RequestDispatcher
getNamedDispatcher(java.lang.String name)
javax.servlet.ServletRegistration
getServletRegistration(java.lang.String servletName)
java.util.Map<java.lang.String,? extends javax.servlet.ServletRegistration>
getServletRegistrations()
javax.servlet.SessionCookieConfig
getSessionCookieConfig()
boolean
setInitParameter(java.lang.String name, java.lang.String value)
void
setJspConfigDescriptor(javax.servlet.descriptor.JspConfigDescriptor d)
void
setSessionTrackingModes(java.util.Set<javax.servlet.SessionTrackingMode> sessionTrackingModes)
-
Methods inherited from class org.eclipse.jetty.server.handler.ContextHandler.Context
checkListener, getAttribute, getAttributeNames, getClassLoader, getContext, getContextHandler, getContextPath, getInitParameter, 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
createFilter, createListener, createServlet, 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
-
-
-
-
Method Detail
-
getNamedDispatcher
public javax.servlet.RequestDispatcher getNamedDispatcher(java.lang.String name)
- Specified by:
getNamedDispatcher
in interfacejavax.servlet.ServletContext
- Overrides:
getNamedDispatcher
in classContextHandler.StaticContext
-
addFilter
public javax.servlet.FilterRegistration.Dynamic addFilter(java.lang.String filterName, java.lang.Class<? extends javax.servlet.Filter> filterClass)
- Specified by:
addFilter
in interfacejavax.servlet.ServletContext
- Overrides:
addFilter
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addFilter
public javax.servlet.FilterRegistration.Dynamic addFilter(java.lang.String filterName, java.lang.String className)
- Specified by:
addFilter
in interfacejavax.servlet.ServletContext
- Overrides:
addFilter
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addFilter
public javax.servlet.FilterRegistration.Dynamic addFilter(java.lang.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(java.lang.String servletName, java.lang.Class<? extends javax.servlet.Servlet> servletClass)
- Specified by:
addServlet
in interfacejavax.servlet.ServletContext
- Overrides:
addServlet
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addServlet
public javax.servlet.ServletRegistration.Dynamic addServlet(java.lang.String servletName, java.lang.String className)
- Specified by:
addServlet
in interfacejavax.servlet.ServletContext
- Overrides:
addServlet
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
addServlet
public javax.servlet.ServletRegistration.Dynamic addServlet(java.lang.String servletName, javax.servlet.Servlet servlet)
- Specified by:
addServlet
in interfacejavax.servlet.ServletContext
- Overrides:
addServlet
in classContextHandler.StaticContext
- Since:
- servlet-api-3.0
-
setInitParameter
public boolean setInitParameter(java.lang.String name, java.lang.String value)
- Specified by:
setInitParameter
in interfacejavax.servlet.ServletContext
- Overrides:
setInitParameter
in classContextHandler.Context
-
createInstance
protected <T> T createInstance(java.lang.Class<T> clazz) throws javax.servlet.ServletException
- Overrides:
createInstance
in classContextHandler.StaticContext
- 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
public java.util.Set<javax.servlet.SessionTrackingMode> getDefaultSessionTrackingModes()
- Specified by:
getDefaultSessionTrackingModes
in interfacejavax.servlet.ServletContext
- Overrides:
getDefaultSessionTrackingModes
in classContextHandler.StaticContext
-
getEffectiveSessionTrackingModes
public java.util.Set<javax.servlet.SessionTrackingMode> getEffectiveSessionTrackingModes()
- Specified by:
getEffectiveSessionTrackingModes
in interfacejavax.servlet.ServletContext
- Overrides:
getEffectiveSessionTrackingModes
in classContextHandler.StaticContext
-
getFilterRegistration
public javax.servlet.FilterRegistration getFilterRegistration(java.lang.String filterName)
- Specified by:
getFilterRegistration
in interfacejavax.servlet.ServletContext
- Overrides:
getFilterRegistration
in classContextHandler.StaticContext
-
getFilterRegistrations
public java.util.Map<java.lang.String,? extends javax.servlet.FilterRegistration> getFilterRegistrations()
- Specified by:
getFilterRegistrations
in interfacejavax.servlet.ServletContext
- Overrides:
getFilterRegistrations
in classContextHandler.StaticContext
-
getServletRegistration
public javax.servlet.ServletRegistration getServletRegistration(java.lang.String servletName)
- Specified by:
getServletRegistration
in interfacejavax.servlet.ServletContext
- Overrides:
getServletRegistration
in classContextHandler.StaticContext
-
getServletRegistrations
public java.util.Map<java.lang.String,? extends javax.servlet.ServletRegistration> 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
public void setSessionTrackingModes(java.util.Set<javax.servlet.SessionTrackingMode> sessionTrackingModes)
- Specified by:
setSessionTrackingModes
in interfacejavax.servlet.ServletContext
- Overrides:
setSessionTrackingModes
in classContextHandler.StaticContext
-
addListener
public void addListener(java.lang.String className)
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.Context
-
addListener
public <T extends java.util.EventListener> void addListener(T t)
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.Context
-
addListener
public void addListener(java.lang.Class<? extends java.util.EventListener> listenerClass)
- 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
public void declareRoles(java.lang.String... roleNames)
- Specified by:
declareRoles
in interfacejavax.servlet.ServletContext
- Overrides:
declareRoles
in classContextHandler.Context
-
-