Class Context.Wrapper
java.lang.Object
org.eclipse.jetty.server.Context.Wrapper
- All Implemented Interfaces:
 Executor, Context, Attributes, Decorator
- Enclosing interface:
 Context
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.SyntheticNested classes/interfaces inherited from interface Context
Context.Wrapper - 
Field Summary
Fields inherited from interface Attributes
NULL - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription<T> Tdecorate(T o) voidvoidExecutes 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 attributevoidRuns the given task in the current thread scoped to this Context.voidRuns 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Attributes
asAttributeMap, clearAttributes, equals, hashCodeMethods inherited from interface Context
getCrossContextDispatchType, getPathInContext, isCrossContextDispatch 
- 
Constructor Details
- 
Wrapper
 
 - 
 - 
Method Details
- 
decorate
 - 
destroy
 - 
getContextPath
- Specified by:
 getContextPathin interfaceContext- Returns:
 - the encoded context path of this 
Contextornull 
 - 
getClassLoader
- Specified by:
 getClassLoaderin interfaceContext- Returns:
 - the 
ClassLoaderassociated with this Context 
 - 
getBaseResource
- Specified by:
 getBaseResourcein interfaceContext- Returns:
 - the base resource used to lookup other resources specified by the request URI path
 
 - 
getErrorHandler
- Specified by:
 getErrorHandlerin interfaceContext- Returns:
 - the error 
Request.Handlerassociated with this Context 
 - 
getVirtualHosts
- Specified by:
 getVirtualHostsin interfaceContext- Returns:
 - a list of virtual host names associated with this Context
 
 - 
getMimeTypes
- Specified by:
 getMimeTypesin interfaceContext- Returns:
 - the mime types associated with this Context
 
 - 
execute
 - 
removeAttribute
Description copied from interface:AttributesRemove an attribute- Specified by:
 removeAttributein interfaceAttributes- Parameters:
 name- the attribute to remove- Returns:
 - the value of the attribute if removed, else 
null 
 - 
setAttribute
Description copied from interface:AttributesSet an attribute- Specified by:
 setAttributein 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:AttributesGet 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:
 getAttributein interfaceAttributes- Parameters:
 name- the attribute to get- Returns:
 - the value of the attribute, or 
nullif no such attribute exists 
 - 
getAttributeNameSet
Description copied from interface:AttributesGet the immutable set of attribute names.- Specified by:
 getAttributeNameSetin interfaceAttributes- Returns:
 - Set of attribute names, or an empty set if there are no attributes.
 
 - 
run
 - 
run
 - 
getTempDirectory
- Specified by:
 getTempDirectoryin interfaceContext- Returns:
 - a non-
nulltemporary directory, configured either for the context, the server or the JVM 
 
 -