org.springframework.integration.http
Interface HttpResponse


public interface HttpResponse

Representation of an HTTP response as returned by an implementation of the HttpRequestExecutor strategy.

Since:
1.0.2
Author:
Mark Fisher

Method Summary
 java.io.InputStream getBody()
          Return the body of the response as an InputStream.
 java.lang.String getFirstHeader(java.lang.String key)
          Return the first header value for a given key, or null if it has no values.
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
          Return all response headers as a map.
 java.util.List<java.lang.String> getHeaders(java.lang.String key)
          Return all header values for a given key, or null if it has no values.
 

Method Detail

getHeaders

java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
Return all response headers as a map. There may be multiple values per key in the map. Hence, the value type is a List of Strings.


getHeaders

java.util.List<java.lang.String> getHeaders(java.lang.String key)
Return all header values for a given key, or null if it has no values.


getFirstHeader

java.lang.String getFirstHeader(java.lang.String key)
Return the first header value for a given key, or null if it has no values.


getBody

java.io.InputStream getBody()
Return the body of the response as an InputStream.