|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
org.apache.http.nio.client.methods.ZeroCopyConsumer<T>
public abstract class ZeroCopyConsumer<T>
Constructor Summary | |
---|---|
ZeroCopyConsumer(File file)
|
Method Summary | |
---|---|
protected T |
buildResult(HttpContext context)
|
protected void |
onContentReceived(org.apache.http.nio.ContentDecoder decoder,
org.apache.http.nio.IOControl ioctrl)
|
protected void |
onResponseReceived(HttpResponse response)
|
protected abstract T |
process(HttpResponse response,
File file)
|
protected void |
releaseResources()
|
Methods inherited from class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer |
---|
cancel, close, consumeContent, failed, getException, getResult, isDone, responseCompleted, responseReceived |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZeroCopyConsumer(File file)
Method Detail |
---|
protected void onResponseReceived(HttpResponse response)
onResponseReceived
in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
protected void onContentReceived(org.apache.http.nio.ContentDecoder decoder, org.apache.http.nio.IOControl ioctrl) throws IOException
onContentReceived
in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
IOException
protected abstract T process(HttpResponse response, File file) throws Exception
Exception
protected T buildResult(HttpContext context) throws Exception
buildResult
in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
Exception
protected void releaseResources()
releaseResources
in class org.apache.http.nio.protocol.AbstractAsyncResponseConsumer<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |