Class HttpResponseWrapper


  • public class HttpResponseWrapper
    extends Object
    Class defines http server response.
    • Constructor Detail

      • HttpResponseWrapper

        public HttpResponseWrapper​(org.apache.commons.httpclient.HttpMethodBase method)
        Constructor - defines response result based on specified HttpMethodBase instance.
        Parameters:
        method - Http method object
    • Method Detail

      • getContentLength

        public long getContentLength()
      • getCharset

        public String getCharset()
      • getMimeType

        public String getMimeType()
      • readBodyAsArray

        public byte[] readBodyAsArray()
      • getBodyAsInputStream

        public InputStream getBodyAsInputStream()
      • close

        public void close()
      • getStatusCode

        public int getStatusCode()
      • getStatusText

        public String getStatusText()