|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransferListener
A simple interface an application can implements in order to received byte transfer information.
Method Summary | |
---|---|
void |
onBytesReceived(ByteBuffer buffer)
Invoked every time response's chunk are received. |
void |
onBytesSent(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(Throwable t)
Invoked when there is an unexpected issue. |
Method Detail |
---|
void onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers)
void onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers)
void onBytesReceived(ByteBuffer buffer) throws IOException
buffer
- a ByteBuffer
IOException
void onBytesSent(ByteBuffer buffer)
buffer
- a ByteBuffer
void onRequestResponseCompleted()
void onThrowable(Throwable t)
t
- a Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |