Package jodd.http
Class HttpProgressListener
- java.lang.Object
-
- jodd.http.HttpProgressListener
-
public abstract class HttpProgressListener extends java.lang.ObjectHttp upload progress listener.
-
-
Field Summary
Fields Modifier and Type Field Description protected intsizeTotal size to transfer.
-
Constructor Summary
Constructors Constructor Description HttpProgressListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcallbackSize(int size)Returns callback size in bytes.abstract voidtransferred(int len)Callback for every sentchunk.
-
-
-
Method Detail
-
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.
-
-