public class OperationRequestFactory extends Object
OperationRequests
.Constructor and Description |
---|
OperationRequestFactory() |
Modifier and Type | Method and Description |
---|---|
OperationRequest |
create(URI uri,
org.springframework.http.HttpMethod method,
byte[] content,
org.springframework.http.HttpHeaders headers,
Parameters parameters,
Collection<OperationRequestPart> parts)
Creates a new
OperationRequest . |
OperationRequest |
create(URI uri,
org.springframework.http.HttpMethod method,
byte[] content,
org.springframework.http.HttpHeaders headers,
Parameters parameters,
Collection<OperationRequestPart> parts,
Collection<RequestCookie> cookies)
Creates a new
OperationRequest . |
OperationRequest |
createFrom(OperationRequest original,
byte[] newContent)
Creates a new
OperationRequest based on the given original but with
the given newContent . |
OperationRequest |
createFrom(OperationRequest original,
org.springframework.http.HttpHeaders newHeaders)
Creates a new
OperationRequest based on the given original but with
the given newHeaders . |
OperationRequest |
createFrom(OperationRequest original,
Parameters newParameters)
Creates a new
OperationRequest based on the given original but with
the given newParameters . |
public OperationRequest create(URI uri, org.springframework.http.HttpMethod method, byte[] content, org.springframework.http.HttpHeaders headers, Parameters parameters, Collection<OperationRequestPart> parts, Collection<RequestCookie> cookies)
OperationRequest
. The given headers
will be augmented
to ensure that they always include a Content-Length
header if the request
has any content and a Host
header.uri
- the request's urimethod
- the request methodcontent
- the content of the requestheaders
- the request's headersparameters
- the request's parametersparts
- the request's partscookies
- the request's cookiesOperationRequest
public OperationRequest create(URI uri, org.springframework.http.HttpMethod method, byte[] content, org.springframework.http.HttpHeaders headers, Parameters parameters, Collection<OperationRequestPart> parts)
OperationRequest
. The given headers
will be augmented
to ensure that they always include a Content-Length
header if the request
has any content and a Host
header.uri
- the request's urimethod
- the request methodcontent
- the content of the requestheaders
- the request's headersparameters
- the request's parametersparts
- the request's partsOperationRequest
public OperationRequest createFrom(OperationRequest original, byte[] newContent)
OperationRequest
based on the given original
but with
the given newContent
. If the original request had a Content-Length
header it will be modified to match the length of the new content.original
- The original requestnewContent
- The new contentpublic OperationRequest createFrom(OperationRequest original, org.springframework.http.HttpHeaders newHeaders)
OperationRequest
based on the given original
but with
the given newHeaders
.original
- The original requestnewHeaders
- The new headerspublic OperationRequest createFrom(OperationRequest original, Parameters newParameters)
OperationRequest
based on the given original
but with
the given newParameters
.original
- The original requestnewParameters
- The new parameters