Class MutableRequest
java.lang.Object
is.galia.resource.MutableRequest
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MutableRequest.Builderbuilder()voidsetBodyStream(InputStream bodyStream) voidsetPathArguments(List<String> pathArguments) For testing purposes only.
-
Constructor Details
-
MutableRequest
public MutableRequest()
-
-
Method Details
-
builder
-
getCookies
- Specified by:
getCookiesin interfaceRequest
-
getHeaders
- Specified by:
getHeadersin interfaceRequest
-
openBodyStream
- Specified by:
openBodyStreamin interfaceRequest- Returns:
- Stream for reading the request entity. May be
null. - Throws:
IOException
-
getMethod
-
getPathArguments
- Specified by:
getPathArgumentsin interfaceRequest- Returns:
- Arguments in the URL path corresponding to the regex groups in the pattern of the resource's route.
-
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.
- 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:
-
setBodyStream
-
setPathArguments
Description copied from interface:RequestFor testing purposes only.- Specified by:
setPathArgumentsin interfaceRequest
-