public class HttpResponseHandler extends Object
Constructor and Description |
---|
HttpResponseHandler(org.apache.http.HttpResponse resp) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Consumes the
HttpEntity and will release the connection. |
org.apache.http.Header[] |
getAllHeaders() |
String |
getCharset() |
org.apache.http.entity.ContentType |
getContentType() |
org.apache.http.Header |
getFirstHeader(String string) |
String |
getHeader(String header) |
Map<String,List<String>> |
getHeaderFields() |
InputStream |
getResponse()
Returns an
InputStream that will automatically close the HttpRequest when fully read |
Message |
getResponseMessage() |
org.apache.http.StatusLine |
getStatusLine() |
boolean |
isMultipart() |
public HttpResponseHandler(org.apache.http.HttpResponse resp) throws IOException
IOException
public org.apache.http.StatusLine getStatusLine()
public org.apache.http.Header[] getAllHeaders()
public InputStream getResponse() throws IOException
InputStream
that will automatically close the HttpRequest when fully readInputStream
retrieved from HttpEntity.getContent()
or NULL when no HttpEntity
is presentIOException
public Message getResponseMessage()
public org.apache.http.entity.ContentType getContentType()
public String getCharset()
public void close() throws IOException
HttpEntity
and will release the connection.IOException
public org.apache.http.Header getFirstHeader(String string)
public boolean isMultipart()
Copyright © 2023 Frank!Framework. All rights reserved.