ClientHttpRequest that has support for ClientHttpRequestInterceptors.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final HttpMethod | |
| private final ClientHttpRequestFactory | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| protected | InterceptingClientHttpRequest(ClientHttpRequestFactory requestFactory, List<ClientHttpRequestInterceptor> interceptors, URI uri, HttpMethod method)
|
| Modifier and Type | Method and Description |
|---|---|
| protected final ClientHttpResponse | executeInternal(HttpHeaders
the HTTP headers headers, byte[] the body content bufferedOutput)Implements abstract org. |
| public HttpMethod | getMethod()
Implements org. |
| public URI | getURI()
Implements org. |
| interceptors | back to summary |
|---|---|
| private final List<ClientHttpRequestInterceptor> interceptors | |
| method | back to summary |
|---|---|
| private final HttpMethod method | |
| requestFactory | back to summary |
|---|---|
| private final ClientHttpRequestFactory requestFactory | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| InterceptingClientHttpRequest | back to summary |
|---|---|
| protected InterceptingClientHttpRequest(ClientHttpRequestFactory requestFactory, List<ClientHttpRequestInterceptor> interceptors, URI uri, HttpMethod method) | |
| executeInternal | back to summary |
|---|---|
| protected final ClientHttpResponse executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws IOException Implements abstract org. Doc from org. Abstract template method that writes the given headers and content to the HTTP request.
| |
| getMethod | back to summary |
|---|---|
| public HttpMethod getMethod() Implements org. Doc from org. Return the HTTP method of the request.
| |
| getURI | back to summary |
|---|---|
| public URI getURI() Implements org. Doc from org. Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation). | |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClientHttpResponse | execute(HttpRequest
the request, containing method, URI, and headers request, byte[] the body of the request to execute body)Implements org. |
| iterator | back to summary |
|---|---|
| private final Iterator<ClientHttpRequestInterceptor> iterator | |
| InterceptingRequestExecution | back to summary |
|---|---|
| public InterceptingRequestExecution() | |
| execute | back to summary |
|---|---|
| public ClientHttpResponse execute(HttpRequest request, byte[] body) throws IOException Implements org. Doc from org. Execute the request with the given request attributes and body, and return the response.
| |