private class MockRestServiceServer.RequestMatcherClientHttpRequestFactory extends java.lang.Object implements ClientHttpRequestFactory, AsyncClientHttpRequestFactory
RequestMatcherClientHttpRequest
's.Modifier and Type | Field and Description |
---|---|
private java.util.Iterator<RequestMatcherClientHttpRequest> |
requestIterator |
Modifier | Constructor and Description |
---|---|
private |
RequestMatcherClientHttpRequestFactory() |
Modifier and Type | Method and Description |
---|---|
AsyncClientHttpRequest |
createAsyncRequest(java.net.URI uri,
HttpMethod httpMethod)
Create a new asynchronous
AsyncClientHttpRequest for the specified URI
and HTTP method. |
ClientHttpRequest |
createRequest(java.net.URI uri,
HttpMethod httpMethod)
Create a new
ClientHttpRequest for the specified URI and HTTP method. |
private RequestMatcherClientHttpRequest |
createRequestInternal(java.net.URI uri,
HttpMethod httpMethod) |
private java.util.Iterator<RequestMatcherClientHttpRequest> requestIterator
private RequestMatcherClientHttpRequestFactory()
public ClientHttpRequest createRequest(java.net.URI uri, HttpMethod httpMethod) throws java.io.IOException
ClientHttpRequestFactory
ClientHttpRequest
for the specified URI and HTTP method.
The returned request can be written to, and then executed by calling
ClientHttpRequest.execute()
.
createRequest
in interface ClientHttpRequestFactory
uri
- the URI to create a request forhttpMethod
- the HTTP method to executejava.io.IOException
- in case of I/O errorspublic AsyncClientHttpRequest createAsyncRequest(java.net.URI uri, HttpMethod httpMethod) throws java.io.IOException
AsyncClientHttpRequestFactory
AsyncClientHttpRequest
for the specified URI
and HTTP method.
The returned request can be written to, and then executed by calling
AsyncClientHttpRequest.executeAsync()
.
createAsyncRequest
in interface AsyncClientHttpRequestFactory
uri
- the URI to create a request forhttpMethod
- the HTTP method to executejava.io.IOException
- in case of I/O errorsprivate RequestMatcherClientHttpRequest createRequestInternal(java.net.URI uri, HttpMethod httpMethod)