Class ContextHandler.ScopedContext
java.lang.Object
org.eclipse.jetty.util.Attributes.Wrapper
org.eclipse.jetty.util.Attributes.Layer
org.eclipse.jetty.server.handler.ContextHandler.ScopedContext
- All Implemented Interfaces:
 Executor, Context, Attributes, Decorator
- Direct Known Subclasses:
 ServletContextHandler.ServletScopedContext, ServletContextHandler.ServletScopedContext
- Enclosing class:
 ContextHandler
- 
Nested Class Summary
Nested classes/interfaces inherited from interface Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic, Attributes.WrapperNested classes/interfaces inherited from interface Context
Context.Wrapper - 
Field Summary
Fields inherited from interface Attributes
NULL - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcall(Invocable.Callable callable, Request request) <T> Tdecorate(T o) voidvoidExecutes the given task in a thread scoped to this Context.void<H extends ContextHandler>
HgetCrossContextDispatchType(Request request) Get any cross context dispatch typeprotected DecoratedObjectFactorygetPathInContext(String canonicallyEncodedPath) Returns the URI path scoped to this Context.booleanisCrossContextDispatch(Request request) Check cross context dispatch statusvoidRuns 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.<T> booleantoString()Methods inherited from class Attributes.Layer
clearAttributes, clearLayerAttributes, getAttribute, getAttributeNameSet, getPersistentAttributes, removeAttribute, setAttributeMethods inherited from class Attributes.Wrapper
equals, getWrapped, hashCodeMethods inherited from interface Attributes
asAttributeMap, clearAttributes, equals, getAttribute, getAttributeNameSet, hashCode, removeAttribute, setAttribute 
- 
Constructor Details
- 
ScopedContext
public ScopedContext() 
 - 
 - 
Method Details
- 
getContextHandler
 - 
getErrorHandler
- Specified by:
 getErrorHandlerin interfaceContext- Returns:
 - the error 
Request.Handlerassociated with this Context 
 - 
getContextPath
- Specified by:
 getContextPathin interfaceContext- Returns:
 - the encoded context path of this 
Contextornull 
 - 
getMimeTypes
- Specified by:
 getMimeTypesin interfaceContext- Returns:
 - the mime types associated with this Context
 
 - 
toString
 - 
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
 
 - 
getTempDirectory
- Specified by:
 getTempDirectoryin interfaceContext- Returns:
 - a non-
nulltemporary directory, configured either for the context, the server or the JVM 
 - 
getVirtualHosts
- Specified by:
 getVirtualHostsin interfaceContext- Returns:
 - a list of virtual host names associated with this Context
 
 - 
call
- Throws:
 Exception
 - 
test
 - 
accept
 - 
run
 - 
run
Description copied from interface:ContextRuns the given task in the current thread scoped to this Context and the given Request.
 - 
execute
 - 
execute
 - 
getDecoratedObjectFactory
 - 
decorate
 - 
destroy
 - 
getPathInContext
Description copied from interface:ContextReturns the URI path scoped to this Context.
- Specified by:
 getPathInContextin interfaceContext- Parameters:
 canonicallyEncodedPath- a full URI path that should be canonically encoded as perURIUtil.canonicalPath(String)- Returns:
 - the URI path scoped to this Context, or 
nullif the full path does not match this Context. The empty string is returned if the full path is exactly the context path. - See Also:
 
 - 
isCrossContextDispatch
Description copied from interface:ContextCheck cross context dispatch status- Specified by:
 isCrossContextDispatchin interfaceContext- Parameters:
 request- The request to check- Returns:
 TrueIFF this contextsupports cross contextand the passed request is a cross context request.
 - 
getCrossContextDispatchType
Description copied from interface:ContextGet any cross context dispatch type- Specified by:
 getCrossContextDispatchTypein interfaceContext- Parameters:
 request- The request to get the type for- Returns:
 - A String representation of a dispatcher type iff this context
supports cross contextand the passed request is a cross context request, otherwise null. 
 
 -