Class HttpProgressListener

java.lang.Object
jodd.http.HttpProgressListener

public abstract class HttpProgressListener extends Object
Http upload progress listener.
  • Field Details

    • size

      protected int size
      Total 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 sent chunk. Also called before and after the transfer.