Class HttpResponseHandler

java.lang.Object
org.frankframework.http.HttpResponseHandler

public class HttpResponseHandler extends Object
  • Constructor Details

    • HttpResponseHandler

      public HttpResponseHandler(org.apache.http.HttpResponse resp) throws IOException
      Throws:
      IOException
  • Method Details

    • getStatusLine

      public org.apache.http.StatusLine getStatusLine()
    • getAllHeaders

      public org.apache.http.Header[] getAllHeaders()
    • getResponse

      public InputStream getResponse() throws IOException
      Returns an InputStream that will automatically close the HttpRequest when fully read
      Returns:
      an InputStream retrieved from HttpEntity.getContent() or NULL when no HttpEntity is present
      Throws:
      IOException
    • getResponseMessage

      public Message getResponseMessage()
    • getHeader

      public String getHeader(String header)
    • getContentType

      public org.apache.http.entity.ContentType getContentType()
    • getCharset

      public String getCharset()
    • close

      public void close() throws IOException
      Consumes the HttpEntity and will release the connection.
      Throws:
      IOException
    • getFirstHeader

      public org.apache.http.Header getFirstHeader(String string)
    • getHeaderFields

      public Map<String,List<String>> getHeaderFields()
    • isMultipart

      public boolean isMultipart()