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:
jakarta.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 jakarta.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) jakarta.servlet.ServletContext
getContext
(String uripath) getInitParameter
(String name) jakarta.servlet.descriptor.JspConfigDescriptor
getMimeType
(String file) getRealPath
(String path) jakarta.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
(jakarta.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 interfacejakarta.servlet.ServletContext
- Overrides:
getContext
in classContextHandler.StaticContext
-
getMimeType
- Specified by:
getMimeType
in interfacejakarta.servlet.ServletContext
- Overrides:
getMimeType
in classContextHandler.StaticContext
-
getRequestDispatcher
- Specified by:
getRequestDispatcher
in interfacejakarta.servlet.ServletContext
- Overrides:
getRequestDispatcher
in classContextHandler.StaticContext
-
getRealPath
- Specified by:
getRealPath
in interfacejakarta.servlet.ServletContext
- Overrides:
getRealPath
in classContextHandler.StaticContext
-
getResource
- Specified by:
getResource
in interfacejakarta.servlet.ServletContext
- Overrides:
getResource
in classContextHandler.StaticContext
- Throws:
MalformedURLException
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfacejakarta.servlet.ServletContext
- Overrides:
getResourceAsStream
in classContextHandler.StaticContext
-
getResourcePaths
- Specified by:
getResourcePaths
in interfacejakarta.servlet.ServletContext
- Overrides:
getResourcePaths
in classContextHandler.StaticContext
-
log
- Specified by:
log
in interfacejakarta.servlet.ServletContext
- Overrides:
log
in classContextHandler.StaticContext
-
log
- Specified by:
log
in interfacejakarta.servlet.ServletContext
- Overrides:
log
in classContextHandler.StaticContext
-
log
- Specified by:
log
in interfacejakarta.servlet.ServletContext
- Overrides:
log
in classContextHandler.StaticContext
-
getInitParameter
- Specified by:
getInitParameter
in interfacejakarta.servlet.ServletContext
- Overrides:
getInitParameter
in classContextHandler.StaticContext
-
getInitParameterNames
- Specified by:
getInitParameterNames
in interfacejakarta.servlet.ServletContext
- Overrides:
getInitParameterNames
in classContextHandler.StaticContext
-
getAttribute
- Specified by:
getAttribute
in interfaceAttributes
- Specified by:
getAttribute
in interfacejakarta.servlet.ServletContext
- Overrides:
getAttribute
in classAttributesMap
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceAttributes
- Specified by:
getAttributeNames
in interfacejakarta.servlet.ServletContext
- Overrides:
getAttributeNames
in classAttributesMap
-
setAttribute
- Specified by:
setAttribute
in interfaceAttributes
- Specified by:
setAttribute
in interfacejakarta.servlet.ServletContext
- Overrides:
setAttribute
in classAttributesMap
-
removeAttribute
- Specified by:
removeAttribute
in interfaceAttributes
- Specified by:
removeAttribute
in interfacejakarta.servlet.ServletContext
- Overrides:
removeAttribute
in classAttributesMap
-
getServletContextName
- Specified by:
getServletContextName
in interfacejakarta.servlet.ServletContext
- Overrides:
getServletContextName
in classContextHandler.StaticContext
-
getContextPath
- Specified by:
getContextPath
in interfacejakarta.servlet.ServletContext
- Overrides:
getContextPath
in classContextHandler.StaticContext
-
toString
- Overrides:
toString
in classAttributesMap
-
setInitParameter
- Specified by:
setInitParameter
in interfacejakarta.servlet.ServletContext
- Overrides:
setInitParameter
in classContextHandler.StaticContext
-
addListener
- Specified by:
addListener
in interfacejakarta.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.StaticContext
-
addListener
- Specified by:
addListener
in interfacejakarta.servlet.ServletContext
- Overrides:
addListener
in classContextHandler.StaticContext
-
addListener
- Specified by:
addListener
in interfacejakarta.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 interfacejakarta.servlet.ServletContext
- Overrides:
getClassLoader
in classContextHandler.StaticContext
-
getJspConfigDescriptor
public jakarta.servlet.descriptor.JspConfigDescriptor getJspConfigDescriptor()- Specified by:
getJspConfigDescriptor
in interfacejakarta.servlet.ServletContext
- Overrides:
getJspConfigDescriptor
in classContextHandler.StaticContext
-
setJspConfigDescriptor
public void setJspConfigDescriptor(jakarta.servlet.descriptor.JspConfigDescriptor d) -
declareRoles
- Specified by:
declareRoles
in interfacejakarta.servlet.ServletContext
- Overrides:
declareRoles
in classContextHandler.StaticContext
-
setEnabled
public void setEnabled(boolean enabled) -
isEnabled
public boolean isEnabled() -
getVirtualServerName
- Specified by:
getVirtualServerName
in interfacejakarta.servlet.ServletContext
- Overrides:
getVirtualServerName
in classContextHandler.StaticContext
-