com.ning.http.client.listener
public interface TransferListener
Modifier and Type | Method and Description |
---|---|
void |
onBytesReceived(java.nio.ByteBuffer buffer)
Invoked every time response's chunk are received.
|
void |
onBytesSent(java.nio.ByteBuffer buffer)
Invoked every time request's chunk are sent.
|
void |
onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers)
Invoked when the request bytes are starting to get send.
|
void |
onRequestResponseCompleted()
Invoked when the response bytes are been fully received.
|
void |
onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers)
Invoked when the response bytes are starting to get received.
|
void |
onThrowable(java.lang.Throwable t)
Invoked when there is an unexpected issue.
|
void onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers)
void onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers)
void onBytesReceived(java.nio.ByteBuffer buffer) throws java.io.IOException
buffer
- a ByteBuffer
java.io.IOException
void onBytesSent(java.nio.ByteBuffer buffer)
buffer
- a ByteBuffer
void onRequestResponseCompleted()
void onThrowable(java.lang.Throwable t)
t
- a Throwable
Copyright © 2014. All Rights Reserved.