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 Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic, Attributes.Wrapper -
Field Summary
Fields inherited from interface Attributes
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TcreateInstance(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 DecoratedObjectFactorysetAttribute(String name, Object attribute) Set an attributevoidsetExtendedListenerTypes(boolean b) Methods inherited from class ContextHandler.ScopedContext
accept, call, decorate, destroy, execute, execute, getBaseResource, getClassLoader, getContextHandler, getContextPath, getCrossContextDispatchType, getErrorHandler, getMimeTypes, getPathInContext, getTempDirectory, getVirtualHosts, isCrossContextDispatch, run, run, test, toStringMethods inherited from class Attributes.Layer
clearAttributes, getPersistentAttributes, removeAttributeMethods inherited from class Attributes.Wrapper
equals, getWrapped, hashCodeMethods inherited from interface Attributes
asAttributeMap, clearAttributes, equals, hashCode, removeAttribute
-
Constructor Details
-
ServletScopedContext
public ServletScopedContext()
-
-
Method Details
-
getServletContext
-
getServletContextHandler
-
getDecoratedObjectFactory
- Overrides:
getDecoratedObjectFactoryin 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:AttributesGet an attribute- Specified by:
getAttributein interfaceAttributes- Overrides:
getAttributein classAttributes.Layer- Parameters:
name- the attribute to get- Returns:
- the value of the attribute, or
nullif no such attribute exists
-
setAttribute
Description copied from interface:AttributesSet an attribute- Specified by:
setAttributein interfaceAttributes- Overrides:
setAttributein 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:AttributesGet the immutable set of attribute names.- Specified by:
getAttributeNameSetin interfaceAttributes- Overrides:
getAttributeNameSetin classAttributes.Layer- Returns:
- Set of attribute names, or an empty set if there are no attributes.
-