mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-16 23:16:33 +00:00
Add missing @Override.
This commit is contained in:
parent
b7f851104a
commit
400771a1a7
@ -366,6 +366,7 @@ public void testSerializeWithHTTPException() throws Exception {
|
|||||||
final HttpCacheStorageEntry testEntry = cacheObjectValues.toEntry();
|
final HttpCacheStorageEntry testEntry = cacheObjectValues.toEntry();
|
||||||
|
|
||||||
final HttpByteArrayCacheEntrySerializer testSerializer = new HttpByteArrayCacheEntrySerializer() {
|
final HttpByteArrayCacheEntrySerializer testSerializer = new HttpByteArrayCacheEntrySerializer() {
|
||||||
|
@Override
|
||||||
protected AbstractMessageWriter<SimpleHttpResponse> makeHttpResponseWriter(final SessionOutputBuffer outputBuffer) {
|
protected AbstractMessageWriter<SimpleHttpResponse> makeHttpResponseWriter(final SessionOutputBuffer outputBuffer) {
|
||||||
return throwyHttpWriter;
|
return throwyHttpWriter;
|
||||||
}
|
}
|
||||||
|
@ -158,6 +158,7 @@ public void testConcurrentPostRequests() throws Exception {
|
|||||||
.build();
|
.build();
|
||||||
|
|
||||||
final ReactiveResponseConsumer consumer = new ReactiveResponseConsumer(new FutureCallback<Message<HttpResponse, Publisher<ByteBuffer>>>() {
|
final ReactiveResponseConsumer consumer = new ReactiveResponseConsumer(new FutureCallback<Message<HttpResponse, Publisher<ByteBuffer>>>() {
|
||||||
|
@Override
|
||||||
public void completed(final Message<HttpResponse, Publisher<ByteBuffer>> result) {
|
public void completed(final Message<HttpResponse, Publisher<ByteBuffer>> result) {
|
||||||
final Flowable<ByteBuffer> flowable = Flowable.fromPublisher(result.getBody())
|
final Flowable<ByteBuffer> flowable = Flowable.fromPublisher(result.getBody())
|
||||||
.observeOn(Schedulers.io()); // Stream the data on an RxJava scheduler, not a client thread
|
.observeOn(Schedulers.io()); // Stream the data on an RxJava scheduler, not a client thread
|
||||||
@ -169,7 +170,9 @@ public void accept(final StreamDescription streamDescription) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
public void failed(final Exception ex) { }
|
public void failed(final Exception ex) { }
|
||||||
|
@Override
|
||||||
public void cancelled() { }
|
public void cancelled() { }
|
||||||
});
|
});
|
||||||
httpclient.execute(request, consumer, HttpClientContext.create(), null);
|
httpclient.execute(request, consumer, HttpClientContext.create(), null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user