Package org.eclipse.jetty.server
Interface Request.ServeAs
- All Superinterfaces:
Attributes
,Content.Source
,Request
- All Known Implementing Classes:
ServletContextRequest
- Enclosing interface:
- Request
This interface will be detected by the
wrap(Request, HttpURI)
static method to wrap the request
changing its target to a given path. If a Request
implements this interface it can
be obtained with the Request.as(Request, Class)
method.- See Also:
-
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.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
-
Method Summary
Methods inherited from interface org.eclipse.jetty.util.Attributes
asAttributeMap, clearAttributes, equals, getAttribute, getAttributeNameSet, hashCode, removeAttribute, setAttribute
Methods inherited from interface org.eclipse.jetty.io.Content.Source
fail, fail, getLength, rewind
Methods inherited from interface org.eclipse.jetty.server.Request
addFailureListener, addHttpStreamWrapper, addIdleTimeoutListener, consumeAvailable, demand, getBeginNanoTime, getComponents, getConnectionMetaData, getContext, getHeaders, getHeadersNanoTime, getHttpURI, getId, getMethod, getSession, getTrailers, getTunnelSupport, isSecure, push, read
-
Method Details
-
wrap
Wraps a request but changes the uri so that it can be served to a different target.- Parameters:
request
- the original request.uri
- the uri of the new target.- Returns:
- the request wrapped to the new target.
-