Class Context.Wrapper
java.lang.Object
org.eclipse.jetty.server.Context.Wrapper
- All Implemented Interfaces:
Executor, Context, org.eclipse.jetty.util.Attributes, org.eclipse.jetty.util.Decorator
- Enclosing interface:
Context
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
org.eclipse.jetty.util.Attributes.Layer, org.eclipse.jetty.util.Attributes.Lazy, org.eclipse.jetty.util.Attributes.Mapped, org.eclipse.jetty.util.Attributes.SyntheticNested classes/interfaces inherited from interface Context
Context.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.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) org.eclipse.jetty.util.resource.Resourceorg.eclipse.jetty.http.MimeTypesremoveAttribute(String name) voidRuns 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) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Attributes
asAttributeMap, clearAttributes, equals, hashCodeMethods inherited from interface Context
getCrossContextDispatchType, getPathInContext, isCrossContextDispatch
-
Constructor Details
-
Wrapper
-
-
Method Details
-
decorate
public <T> T decorate(T o) - Specified by:
decoratein interfaceorg.eclipse.jetty.util.Decorator
-
destroy
- Specified by:
destroyin interfaceorg.eclipse.jetty.util.Decorator
-
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
public org.eclipse.jetty.util.resource.Resource 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
public org.eclipse.jetty.http.MimeTypes getMimeTypes()- Specified by:
getMimeTypesin interfaceContext- Returns:
- the mime types associated with this Context
-
execute
-
removeAttribute
-
setAttribute
-
getAttribute
-
getAttributeNameSet
-
run
-
run
-
getTempDirectory
- Specified by:
getTempDirectoryin interfaceContext- Returns:
- a non-
nulltemporary directory, configured either for the context, the server or the JVM
-