public abstract class ContainerListener
extends java.lang.Object
Constructor and Description |
---|
ContainerListener() |
Modifier and Type | Method and Description |
---|---|
void |
onFinish()
Called when last byte of response entity is read or (if entity is not
present in response) after sending request.
|
void |
onReceived(long delta,
long bytes)
Called when any amount of bytes is read from responses entity
|
void |
onReceiveStart(long totalBytes)
Called when receive starts.
|
void |
onSent(long delta,
long bytes)
Called when any amount of bytes from request entity is sent.
|
public void onSent(long delta, long bytes)
delta
- the number of bytes sent for this eventbytes
- the total number of bytes sent so farpublic void onReceiveStart(long totalBytes)
totalBytes
- entity size in response (taken from http header
"Content-Length"; set to -1 if it's missing)public void onReceived(long delta, long bytes)
delta
- the number of bytes received for this eventbytes
- the total number of bytes received so farpublic void onFinish()
Copyright © 2016 Oracle Corporation. All Rights Reserved.