Class HttpMethodResponse

  • All Implemented Interfaces:
    Response

    public class HttpMethodResponse
    extends java.lang.Object
    implements Response
    Since:
    4.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.commons.httpclient.HttpMethod method  
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpMethodResponse​(org.apache.commons.httpclient.HttpMethod method)  
    • Field Detail

      • method

        protected org.apache.commons.httpclient.HttpMethod method
    • Constructor Detail

      • HttpMethodResponse

        public HttpMethodResponse​(org.apache.commons.httpclient.HttpMethod method)
                           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • release

        public void release()
        Specified by:
        release in interface Response
      • getContentAsStream

        public java.io.InputStream getContentAsStream()
                                               throws java.io.IOException
        Specified by:
        getContentAsStream in interface Response
        Throws:
        java.io.IOException
      • getContentType

        public java.lang.String getContentType()
        Specified by:
        getContentType in interface Response
      • getHeader

        public java.lang.String getHeader​(java.lang.String name)
        Specified by:
        getHeader in interface Response