Class PathMappingsHandler.PathSpecRequest
java.lang.Object
org.eclipse.jetty.server.Request.Wrapper
org.eclipse.jetty.server.handler.PathMappingsHandler.PathSpecRequest
- All Implemented Interfaces:
 Content.Source, Request, 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 Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.SyntheticNested classes/interfaces inherited from interface Content.Source
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 Attributes
NULLFields inherited from interface Request
COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Get an attribute by name.Get the immutable set of attribute names.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 Attributes
equals, hashCodeMethods inherited from interface Content.Source
fail, rewind 
- 
Constructor Details
- 
PathSpecRequest
 
 - 
 - 
Method Details
- 
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- Overrides:
 getAttributein classRequest.Wrapper- 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- Overrides:
 getAttributeNameSetin classRequest.Wrapper- Returns:
 - Set of attribute names, or an empty set if there are no attributes.
 
 - 
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:
 
 
 -