Search in sources :

Example 1 with ResponseHeadersAsMetadata

use of com.adaptris.core.http.client.net.ResponseHeadersAsMetadata in project interlok by adaptris.

the class StandardResponseProducerTest method createRequestor.

protected static StandaloneRequestor createRequestor(int port) {
    StandardHttpProducer producer = new StandardHttpProducer().withURL(createURL(port));
    producer.setContentTypeProvider(new MetadataContentTypeProvider(CONTENT_TYPE));
    producer.setResponseHeaderHandler(new ResponseHeadersAsMetadata());
    return new StandaloneRequestor(producer);
}
Also used : StandardHttpProducer(com.adaptris.core.http.client.net.StandardHttpProducer) MetadataContentTypeProvider(com.adaptris.core.http.MetadataContentTypeProvider) StandaloneRequestor(com.adaptris.core.StandaloneRequestor) ResponseHeadersAsMetadata(com.adaptris.core.http.client.net.ResponseHeadersAsMetadata)

Aggregations

StandaloneRequestor (com.adaptris.core.StandaloneRequestor)1 MetadataContentTypeProvider (com.adaptris.core.http.MetadataContentTypeProvider)1 ResponseHeadersAsMetadata (com.adaptris.core.http.client.net.ResponseHeadersAsMetadata)1 StandardHttpProducer (com.adaptris.core.http.client.net.StandardHttpProducer)1