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