Polishing
This commit is contained in:
@@ -90,13 +90,15 @@ public class HttpComponentsClientHttpConnector implements ClientHttpConnector {
|
||||
this.client.start();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the buffer factory to be used.
|
||||
* Set the buffer factory to use.
|
||||
*/
|
||||
public void setBufferFactory(DataBufferFactory bufferFactory) {
|
||||
this.dataBufferFactory = bufferFactory;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri,
|
||||
Function<? super ClientHttpRequest, Mono<Void>> requestCallback) {
|
||||
@@ -143,8 +145,8 @@ public class HttpComponentsClientHttpConnector implements ClientHttpConnector {
|
||||
|
||||
@Override
|
||||
public void completed(Message<HttpResponse, Publisher<ByteBuffer>> result) {
|
||||
HttpComponentsClientHttpResponse response = new HttpComponentsClientHttpResponse(this.dataBufferFactory,
|
||||
result, this.context);
|
||||
HttpComponentsClientHttpResponse response =
|
||||
new HttpComponentsClientHttpResponse(this.dataBufferFactory, result, this.context);
|
||||
this.sink.success(response);
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ class HttpComponentsClientHttpRequest extends AbstractClientHttpRequest {
|
||||
return this.httpRequest.getUri();
|
||||
}
|
||||
catch (URISyntaxException ex) {
|
||||
throw new IllegalArgumentException("Invalid URI syntax.", ex);
|
||||
throw new IllegalArgumentException("Invalid URI syntax: " + ex.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -56,8 +56,7 @@ class HttpComponentsClientHttpResponse implements ClientHttpResponse {
|
||||
|
||||
|
||||
public HttpComponentsClientHttpResponse(DataBufferFactory dataBufferFactory,
|
||||
Message<HttpResponse, Publisher<ByteBuffer>> message,
|
||||
HttpClientContext context) {
|
||||
Message<HttpResponse, Publisher<ByteBuffer>> message, HttpClientContext context) {
|
||||
|
||||
this.dataBufferFactory = dataBufferFactory;
|
||||
this.message = message;
|
||||
@@ -112,4 +111,5 @@ class HttpComponentsClientHttpResponse implements ClientHttpResponse {
|
||||
public HttpHeaders getHeaders() {
|
||||
return this.headers;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -91,13 +91,15 @@ public class JettyClientHttpConnector implements ClientHttpConnector {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the buffer factory to be used.
|
||||
* Set the buffer factory to use.
|
||||
*/
|
||||
public void setBufferFactory(DataBufferFactory bufferFactory) {
|
||||
this.bufferFactory = bufferFactory;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri,
|
||||
Function<? super ClientHttpRequest, Mono<Void>> requestCallback) {
|
||||
|
||||
Reference in New Issue
Block a user