public class DiscardResponseHeaders extends java.lang.Object implements ResponseHeaderHandler<java.net.HttpURLConnection>
ResponseHeaderHandler
implementation that discards the headers from the HTTP response.In the adapter configuration file this class is aliased as http-discard-response-headers which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
DiscardResponseHeaders() |
Modifier and Type | Method and Description |
---|---|
AdaptrisMessage |
handle(java.net.HttpURLConnection headers,
AdaptrisMessage msg)
Do something with the response headers
|
public AdaptrisMessage handle(java.net.HttpURLConnection headers, AdaptrisMessage msg)
ResponseHeaderHandler
handle
in interface ResponseHeaderHandler<java.net.HttpURLConnection>
headers
- the object containing the headersmsg
- the AdaptrisMessage.