Class Context.Wrapper
java.lang.Object
org.eclipse.jetty.server.Context.Wrapper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Context
Context.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
decorate
(T o) void
void
Executes the given task in a thread scoped to this Context.getAttribute
(String name) Get an attribute by name.Get the immutable set of attribute names.removeAttribute
(String name) Remove an attributevoid
Runs the given task in the current thread scoped to this Context.void
Runs the given task in the current thread scoped to this Context and the given Request.setAttribute
(String name, Object attribute) Set an attributeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.Attributes
asAttributeMap, clearAttributes, equals, hashCode
Methods inherited from interface org.eclipse.jetty.server.Context
getCrossContextDispatchType, getPathInContext, isCrossContextDispatch
-
Constructor Details
-
Wrapper
-
-
Method Details
-
decorate
-
destroy
-
getContextPath
- Specified by:
getContextPath
in interfaceContext
- Returns:
- the encoded context path of this
Context
ornull
-
getClassLoader
- Specified by:
getClassLoader
in interfaceContext
- Returns:
- the
ClassLoader
associated with this Context
-
getBaseResource
- Specified by:
getBaseResource
in interfaceContext
- Returns:
- the base resource used to lookup other resources specified by the request URI path
-
getErrorHandler
- Specified by:
getErrorHandler
in interfaceContext
- Returns:
- the error
Request.Handler
associated with this Context
-
getVirtualHosts
- Specified by:
getVirtualHosts
in interfaceContext
- Returns:
- a list of virtual host names associated with this Context
-
getMimeTypes
- Specified by:
getMimeTypes
in interfaceContext
- Returns:
- the mime types associated with this Context
-
execute
-
removeAttribute
Description copied from interface:Attributes
Remove an attribute- Specified by:
removeAttribute
in interfaceAttributes
- Parameters:
name
- the attribute to remove- Returns:
- the value of the attribute if removed, else
null
-
setAttribute
Description copied from interface:Attributes
Set an attribute- Specified by:
setAttribute
in interfaceAttributes
- 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
-
getAttribute
Description copied from interface:Attributes
Get an attribute by name. Some attributes may be "hidden" attributes, in that they are only found by an explicit call togetAttribute(String)
and they do not otherwise appear inAttributes.getAttributeNameSet()
orAttributes.asAttributeMap()
.- Specified by:
getAttribute
in interfaceAttributes
- Parameters:
name
- the attribute to get- Returns:
- the value of the attribute, or
null
if no such attribute exists
-
getAttributeNameSet
Description copied from interface:Attributes
Get the immutable set of attribute names.- Specified by:
getAttributeNameSet
in interfaceAttributes
- Returns:
- Set of attribute names, or an empty set if there are no attributes.
-
run
-
run
-
getTempDirectory
- Specified by:
getTempDirectory
in interfaceContext
- Returns:
- a non-
null
temporary directory, configured either for the context, the server or the JVM
-