Package org.eclipse.jetty.server.handler
Class ContextHandler.Context
java.lang.Object
org.eclipse.jetty.util.AttributesMap
org.eclipse.jetty.server.handler.ContextHandler.StaticContext
org.eclipse.jetty.server.handler.ContextHandler.Context
- All Implemented Interfaces:
javax.servlet.ServletContext
,Attributes
,Dumpable
- Direct Known Subclasses:
ServletContextHandler.Context
- Enclosing class:
- ContextHandler
Context.
A partial implementation of ServletContext
. A complete implementation is provided by the
derived ContextHandler
implementations.
-
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
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
Fields inherited from interface javax.servlet.ServletContext
ORDERED_LIBS, TEMPDIR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(Class<? extends EventListener> listenerClass) void
addListener
(String className) <T extends EventListener>
voidaddListener
(T t) void
checkListener
(Class<? extends EventListener> listener) void
declareRoles
(String... roleNames) getAttribute
(String name) javax.servlet.ServletContext
getContext
(String uripath) getInitParameter
(String name) javax.servlet.descriptor.JspConfigDescriptor
getMimeType
(String file) getRealPath
(String path) javax.servlet.RequestDispatcher
getRequestDispatcher
(String uriInContext) getResource
(String path) getResourceAsStream
(String path) getResourcePaths
(String path) boolean
boolean
void
void
void
void
removeAttribute
(String name) void
setAttribute
(String name, Object value) void
setEnabled
(boolean enabled) void
setExtendedListenerTypes
(boolean extended) boolean
setInitParameter
(String name, String value) void
setJspConfigDescriptor
(javax.servlet.descriptor.JspConfigDescriptor d) toString()
Methods inherited from class org.eclipse.jetty.server.handler.ContextHandler.StaticContext
addFilter, addFilter, addFilter, addJspFile, addServlet, addServlet, addServlet, createFilter, createInstance, createListener, createServlet, getDefaultSessionTrackingModes, getEffectiveMajorVersion, getEffectiveMinorVersion, getEffectiveSessionTrackingModes, getFilterRegistration, getFilterRegistrations, getMajorVersion, getMinorVersion, getNamedDispatcher, getRequestCharacterEncoding, getResponseCharacterEncoding, getServerInfo, getServlet, getServletNames, getServletRegistration, getServletRegistrations, getServlets, getSessionCookieConfig, getSessionTimeout, setEffectiveMajorVersion, setEffectiveMinorVersion, setRequestCharacterEncoding, setResponseCharacterEncoding, setSessionTimeout, setSessionTrackingModes
Methods inherited from class org.eclipse.jetty.util.AttributesMap
addAll, clearAttributes, dump, dump, getAttributeEntrySet, getAttributeNamesCopy, getAttributeNameSet, size
-
Field Details
-
_enabled
protected boolean _enabled -
_extendedListenerTypes
protected boolean _extendedListenerTypes
-
-
Constructor Details
-
Context
protected Context()
-
-
Method Details
-
getContextHandler
-
getContext
- Specified by:
getContext
in interfacejavax.servlet.ServletContext
- Overrides:
getContext
in classContextHandler.StaticContext
-
getMimeType
- Specified by:
getMimeType
in interfacejavax.servlet.ServletContext
- Overrides:
getMimeType
in classContextHandler.StaticContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacejavax.servlet.ServletContext
- Overrides:
getRequestDispatcher
in classContextHandler.StaticContext
-
getRealPath
- Specified by:
getRealPath
in interfacejavax.servlet.ServletContext
- Overrides:
getRealPath
in classContextHandler.StaticContext
-
getResource
- Specified by:
getResource
in interfacejavax.servlet.ServletContext
- Overrides:
getResource
in classContextHandler.StaticContext
- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfacejavax.servlet.ServletContext
- Overrides:
getResourceAsStream
in classContextHandler.StaticContext
-
getResourcePaths
- Specified by:
getResourcePaths
in interfacejavax.servlet.ServletContext
- Overrides:
getResourcePaths
in classContextHandler.StaticContext
-
log
- Specified by:
log
in interfacejavax.servlet.ServletContext
- Overrides:
log
in classContextHandler.StaticContext
-
log
- Specified by:
log
in interfacejavax.servlet.ServletContext
- Overrides:
log
in classContextHandler.StaticContext
-
log
- Specified by:
log
in interfacejavax.servlet.ServletContext
- Overrides:
log
in classContextHandler.StaticContext
-
getInitParameter
- Specified by:
getInitParameter
in interfacejavax.servlet.ServletContext
- Overrides:
getInitParameter
in classContextHandler.StaticContext
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfacejavax.servlet.ServletContext
- Overrides:
getInitParameterNames
in classContextHandler.StaticContext
-
getAttribute
- Specified by:
getAttribute
in interfaceAttributes
- Specified by:
getAttribute
in interfacejavax.servlet.ServletContext
- Overrides:
getAttribute
in classAttributesMap
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceAttributes
- Specified by:
getAttributeNames
in interfacejavax.servlet.ServletContext
- Overrides:
getAttributeNames
in classAttributesMap
-
setAttribute
- Specified by:
setAttribute
in interfaceAttributes
- Specified by:
setAttribute
in interfacejavax.servlet.ServletContext
- Overrides:
setAttribute
in classAttributesMap
-
removeAttribute
- Specified by:
removeAttribute
in interfaceAttributes
- Specified by:
removeAttribute
in interfacejavax.servlet.ServletContext
- Overrides:
removeAttribute
in classAttributesMap
-
getServletContextName
- Specified by:
getServletContextName
in interfacejavax.servlet.ServletContext
- Overrides:
getServletContextName
in classContextHandler.StaticContext
-
getContextPath
- Specified by:
getContextPath
in interfacejavax.servlet.ServletContext
- Overrides:
getContextPath
in classContextHandler.StaticContext
-
toString
- Overrides:
toString
in classAttributesMap
-
setInitParameter
- Specified by:
setInitParameter
in interfacejavax.servlet.ServletContext
- Overrides:
setInitParameter
in classContextHandler.StaticContext
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.StaticContext
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.StaticContext
-
addListener
- Specified by:
addListener
in interfacejavax.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.StaticContext
-
checkListener
- Throws:
IllegalStateException
-
setExtendedListenerTypes
public void setExtendedListenerTypes(boolean extended) -
isExtendedListenerTypes
public boolean isExtendedListenerTypes() -
getClassLoader
- Specified by:
getClassLoader
in interfacejavax.servlet.ServletContext
- Overrides:
getClassLoader
in classContextHandler.StaticContext
-
getJspConfigDescriptor
public javax.servlet.descriptor.JspConfigDescriptor getJspConfigDescriptor()- Specified by:
getJspConfigDescriptor
in interfacejavax.servlet.ServletContext
- Overrides:
getJspConfigDescriptor
in classContextHandler.StaticContext
-
setJspConfigDescriptor
public void setJspConfigDescriptor(javax.servlet.descriptor.JspConfigDescriptor d) -
declareRoles
- Specified by:
declareRoles
in interfacejavax.servlet.ServletContext
- Overrides:
declareRoles
in classContextHandler.StaticContext
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled() -
getVirtualServerName
- Specified by:
getVirtualServerName
in interfacejavax.servlet.ServletContext
- Overrides:
getVirtualServerName
in classContextHandler.StaticContext
-