Package org.eclipse.jetty.ee10.servlet
Class ServletContextHandler.ServletScopedContext
java.lang.Object
org.eclipse.jetty.util.Attributes.Wrapper
org.eclipse.jetty.util.Attributes.Layer
org.eclipse.jetty.server.handler.ContextHandler.ScopedContext
org.eclipse.jetty.ee10.servlet.ServletContextHandler.ServletScopedContext
- All Implemented Interfaces:
Executor
,Context
,Attributes
,Decorator
- Enclosing class:
ServletContextHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic, Attributes.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
createInstance
(BaseHolder<T> holder) <T extends jakarta.servlet.Filter>
voiddestroyFilter
(T f) <T extends jakarta.servlet.Servlet>
voiddestroyServlet
(T s) getAttribute
(String name) Get an attributeGet the immutable set of attribute names.protected DecoratedObjectFactory
setAttribute
(String name, Object attribute) Set an attributevoid
setExtendedListenerTypes
(boolean b) Methods inherited from class org.eclipse.jetty.server.handler.ContextHandler.ScopedContext
accept, call, decorate, destroy, execute, execute, getBaseResource, getClassLoader, getContextHandler, getContextPath, getCrossContextDispatchType, getErrorHandler, getMimeTypes, getPathInContext, getTempDirectory, getVirtualHosts, isCrossContextDispatch, run, run, test, toString
Methods inherited from class org.eclipse.jetty.util.Attributes.Layer
clearAttributes, getPersistentAttributes, removeAttribute
Methods inherited from class org.eclipse.jetty.util.Attributes.Wrapper
equals, getWrapped, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.Attributes
asAttributeMap, clearAttributes, equals, hashCode, removeAttribute
-
Constructor Details
-
ServletScopedContext
public ServletScopedContext()
-
-
Method Details
-
getServletContext
-
getServletContextHandler
-
getDecoratedObjectFactory
- Overrides:
getDecoratedObjectFactory
in classContextHandler.ScopedContext
-
createInstance
- Throws:
jakarta.servlet.ServletException
-
destroyFilter
public <T extends jakarta.servlet.Filter> void destroyFilter(T f) -
destroyServlet
public <T extends jakarta.servlet.Servlet> void destroyServlet(T s) -
setExtendedListenerTypes
public void setExtendedListenerTypes(boolean b) -
getAttribute
Description copied from interface:Attributes
Get an attribute- Specified by:
getAttribute
in interfaceAttributes
- Overrides:
getAttribute
in classAttributes.Layer
- Parameters:
name
- the attribute to get- Returns:
- the value of the attribute, or
null
if no such attribute exists
-
setAttribute
Description copied from interface:Attributes
Set an attribute- Specified by:
setAttribute
in interfaceAttributes
- Overrides:
setAttribute
in classAttributes.Layer
- Parameters:
name
- the attribute to setattribute
- the value to set. A null value is equivalent to removing the attribute.- Returns:
- the previous value of the attribute if set, else
null
-
getAttributeNameSet
Description copied from interface:Attributes
Get the immutable set of attribute names.- Specified by:
getAttributeNameSet
in interfaceAttributes
- Overrides:
getAttributeNameSet
in classAttributes.Layer
- Returns:
- Set of attribute names, or an empty set if there are no attributes.
-