Class JettyRequestWrapper
java.lang.Object
is.galia.resource.JettyRequestWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPathArguments
(List<String> pathArguments) For testing purposes only.
-
Constructor Details
-
JettyRequestWrapper
public JettyRequestWrapper(org.eclipse.jetty.server.Request jettyRequest)
-
-
Method Details
-
getCookies
- Specified by:
getCookies
in interfaceRequest
- Returns:
- New instance. Any changes to it will not be reflected in the
wrapped
Request
.
-
getHeaders
- Specified by:
getHeaders
in interfaceRequest
- Returns:
- New instance. Any changes to it will not be reflected in the
wrapped
Request
.
-
getMethod
-
getPathArguments
- Specified by:
getPathArguments
in interfaceRequest
- Returns:
- Arguments in the URL path corresponding to the regex groups in one of the resource's route patterns.
-
getReference
- Specified by:
getReference
in interfaceRequest
- Returns:
- Full request URI including query. Note that this may not be the
URI that the user agent supplies or sees. Any changes to the
instance will not be reflected in the wrapped
Request
. - See Also:
-
getRemoteAddr
- Specified by:
getRemoteAddr
in interfaceRequest
- Returns:
- Client IP address. Note that this may not be the user agent IP address, as in the case of e.g. running behind a reverse proxy server.
- See Also:
-
openBodyStream
- Specified by:
openBodyStream
in interfaceRequest
- Returns:
- Stream for reading the request entity. May be
null
. - Throws:
IOException
-
setPathArguments
Description copied from interface:Request
For testing purposes only.- Specified by:
setPathArguments
in interfaceRequest
-