Class HttpProgressListener
java.lang.Object
jodd.http.HttpProgressListener
Http upload progress listener.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcallbackSize(int size) Returns callback size in bytes.abstract voidtransferred(int len) Callback for every sentchunk.
-
Field Details
-
size
protected int sizeTotal size to transfer.
-
-
Constructor Details
-
HttpProgressListener
public HttpProgressListener()
-
-
Method Details
-
callbackSize
public int callbackSize(int size) Returns callback size in bytes. By default it returns size of 1 percent of a total size. If returned size is less then 512, it will be rounded to 512. This is also the size of the chunk that is sent over network. -
transferred
public abstract void transferred(int len) Callback for every sentchunk. Also called before and after the transfer.
-