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()
OperationRequestgetContent in interface OperationRequestnullpublic HttpHeaders getHeaders()
OperationRequestgetHeaders in interface OperationRequestpublic HttpMethod getMethod()
OperationRequestgetMethod in interface OperationRequestpublic Parameters getParameters()
OperationRequestGET 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 OperationRequestpublic Collection<OperationRequestPart> getParts()
OperationRequestCollection is returned.getParts in interface OperationRequestpublic URI getUri()
OperationRequestgetUri in interface OperationRequest