Class JettyRequestWrapper
java.lang.Object
is.galia.resource.JettyRequestWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetPathArguments(List<String> pathArguments) For testing purposes only.
-
Constructor Details
-
JettyRequestWrapper
public JettyRequestWrapper(org.eclipse.jetty.server.Request jettyRequest)
-
-
Method Details
-
getCookies
- Specified by:
getCookiesin interfaceRequest- Returns:
- New instance. Any changes to it will not be reflected in the
wrapped
Request.
-
getHeaders
- Specified by:
getHeadersin interfaceRequest- Returns:
- New instance. Any changes to it will not be reflected in the
wrapped
Request.
-
getMethod
-
getPathArguments
- Specified by:
getPathArgumentsin interfaceRequest- Returns:
- Arguments in the URL path corresponding to the regex groups in one of the resource's route patterns.
-
getReference
- Specified by:
getReferencein 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:
getRemoteAddrin 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:
openBodyStreamin interfaceRequest- Returns:
- Stream for reading the request entity. May be
null. - Throws:
IOException
-
setPathArguments
Description copied from interface:RequestFor testing purposes only.- Specified by:
setPathArgumentsin interfaceRequest
-