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 org.eclipse.jetty.util.Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source
Content.Source.Factory
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Request
Request.AttributesWrapper, Request.AuthenticationState, Request.Handler, Request.ServeAs, Request.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULL
Fields inherited from interface org.eclipse.jetty.server.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 theContext
associated with thisRequest
.Methods inherited from class org.eclipse.jetty.server.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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.Attributes
equals, hashCode
Methods inherited from interface org.eclipse.jetty.io.Content.Source
fail, rewind
-
Constructor Details
-
PathSpecRequest
-
-
Method Details
-
getAttribute
Description copied from interface:Attributes
Get 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:
getAttribute
in interfaceAttributes
- Overrides:
getAttribute
in classRequest.Wrapper
- Parameters:
name
- the attribute to get- Returns:
- the value of the attribute, or
null
if no such attribute exists
-
getAttributeNameSet
Description copied from interface:Attributes
Get the immutable set of attribute names.- Specified by:
getAttributeNameSet
in interfaceAttributes
- Overrides:
getAttributeNameSet
in classRequest.Wrapper
- Returns:
- Set of attribute names, or an empty set if there are no attributes.
-
getContext
Description copied from interface:Request
Get theContext
associated with thisRequest
.Note that a
Request
should always have an associatedContext
since if theRequest
is not being handled by aContextHandler
then theContext
fromServer.getContext()
will be used.- Specified by:
getContext
in interfaceRequest
- Overrides:
getContext
in classRequest.Wrapper
- Returns:
- the
Context
associated with thisRequest
. Nevernull
. - See Also:
-