Class HttpRequestor.Uploader

  • Enclosing class:
    HttpRequestor

    public abstract static class HttpRequestor.Uploader
    extends java.lang.Object
    • Constructor Detail

      • Uploader

        public Uploader()
    • Method Detail

      • getBody

        public abstract java.io.OutputStream getBody()
      • close

        public abstract void close()
      • abort

        public abstract void abort()
      • finish

        public abstract HttpRequestor.Response finish()
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        public void upload​(java.io.File file)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        public void upload​(java.io.InputStream in,
                           long limit)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        public void upload​(java.io.InputStream in)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • upload

        public void upload​(byte[] body)
                    throws java.io.IOException
        Throws:
        java.io.IOException