public class StandardOperationRequest extends Object implements OperationRequest
OperationRequest
.Constructor and Description |
---|
StandardOperationRequest(URI uri,
HttpMethod method,
byte[] content,
HttpHeaders headers,
Parameters parameters,
Collection<OperationRequestPart> parts)
Creates a new request with the given
uri and method . |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Returns the contents of the request.
|
HttpHeaders |
getHeaders()
Returns the headers that were included in the request.
|
HttpMethod |
getMethod()
Returns the HTTP method of the request
|
Parameters |
getParameters()
Returns the request's parameters.
|
Collection<OperationRequestPart> |
getParts()
Returns the request's parts, provided that it is a multipart request.
|
URI |
getUri()
Returns the request's URI.
|
public StandardOperationRequest(URI uri, HttpMethod method, byte[] content, HttpHeaders headers, Parameters parameters, Collection<OperationRequestPart> parts)
uri
and method
. The request
will have the given headers
, parameters
, and parts
.uri
- the urimethod
- the methodcontent
- the contentheaders
- the headersparameters
- the parametersparts
- the partspublic byte[] getContent()
OperationRequest
getContent
in interface OperationRequest
null
public HttpHeaders getHeaders()
OperationRequest
getHeaders
in interface OperationRequest
public HttpMethod getMethod()
OperationRequest
getMethod
in interface OperationRequest
public Parameters getParameters()
OperationRequest
GET
request, the parameters are
derived from the query string. For a POST
request, the parameters are
derived form the request's body.getParameters
in interface OperationRequest
public Collection<OperationRequestPart> getParts()
OperationRequest
Collection
is returned.getParts
in interface OperationRequest
public URI getUri()
OperationRequest
getUri
in interface OperationRequest