Package com.algorithmia.client
Class HttpClientHelpers.AbstractBasicResponseConsumer<T>
- java.lang.Object
-
- org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
-
- com.algorithmia.client.HttpClientHelpers.AbstractBasicResponseConsumer<T>
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,org.apache.http.concurrent.Cancellable
,org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
- Direct Known Subclasses:
HttpClientHelpers.AlgoResponseHandler
,HttpClientHelpers.JsonDeserializeResponseHandler
- Enclosing class:
- HttpClientHelpers
public abstract static class HttpClientHelpers.AbstractBasicResponseConsumer<T> extends org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.http.HttpResponse
response
-
Constructor Summary
Constructors Constructor Description AbstractBasicResponseConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onContentReceived(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl)
protected void
onEntityEnclosed(org.apache.http.HttpEntity entity, org.apache.http.entity.ContentType contentType)
protected void
onResponseReceived(org.apache.http.HttpResponse response)
protected void
releaseResources()
-
-
-
Method Detail
-
onResponseReceived
protected void onResponseReceived(org.apache.http.HttpResponse response) throws java.io.IOException
- Specified by:
onResponseReceived
in classorg.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
- Throws:
java.io.IOException
-
onEntityEnclosed
protected void onEntityEnclosed(org.apache.http.HttpEntity entity, org.apache.http.entity.ContentType contentType) throws java.io.IOException
- Specified by:
onEntityEnclosed
in classorg.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
- Throws:
java.io.IOException
-
onContentReceived
protected void onContentReceived(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl) throws java.io.IOException
- Specified by:
onContentReceived
in classorg.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
- Throws:
java.io.IOException
-
releaseResources
protected void releaseResources()
- Specified by:
releaseResources
in classorg.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
-
-