Class PathMappingsHandler.PathSpecRequest
java.lang.Object
org.eclipse.jetty.server.Request.Wrapper
org.eclipse.jetty.server.handler.PathMappingsHandler.PathSpecRequest
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Source, Request, org.eclipse.jetty.util.Attributes
- Enclosing class:
PathMappingsHandler
A custom Request.Wrapper that provides a Context based on the results
of a PathSpec.
Also provides the PathSpec used for this Request in the Attribute with
the name PathMappingsHandler.PATHSPEC_ATTR
-
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 org.eclipse.jetty.io.Content.Source
org.eclipse.jetty.io.Content.Source.FactoryNested classes/interfaces inherited from interface Request
Request.AttributesWrapper, Request.AuthenticationState, Request.Handler, Request.ServeAs, Request.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULLFields inherited from interface Request
COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG -
Constructor Summary
ConstructorsConstructorDescriptionPathSpecRequest(Request request, org.eclipse.jetty.http.pathmap.PathSpec pathSpec) -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Get theContextassociated with thisRequest.Methods inherited from class Request.Wrapper
addFailureListener, addHttpStreamWrapper, addIdleTimeoutListener, asAttributeMap, clearAttributes, consumeAvailable, demand, fail, getBeginNanoTime, getComponents, getConnectionMetaData, getHeaders, getHeadersNanoTime, getHttpURI, getId, getLength, getMethod, getSession, getTrailers, getTunnelSupport, getWrapped, isSecure, push, read, removeAttribute, setAttribute, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Attributes
equals, hashCodeMethods inherited from interface org.eclipse.jetty.io.Content.Source
fail, rewind
-
Constructor Details
-
PathSpecRequest
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfaceorg.eclipse.jetty.util.Attributes- Overrides:
getAttributein classRequest.Wrapper
-
getAttributeNameSet
- Specified by:
getAttributeNameSetin interfaceorg.eclipse.jetty.util.Attributes- Overrides:
getAttributeNameSetin classRequest.Wrapper
-
getContext
Description copied from interface:RequestGet theContextassociated with thisRequest.Note that a
Requestshould always have an associatedContextsince if theRequestis not being handled by aContextHandlerthen theContextfromServer.getContext()will be used.- Specified by:
getContextin interfaceRequest- Overrides:
getContextin classRequest.Wrapper- Returns:
- the
Contextassociated with thisRequest. Nevernull. - See Also:
-