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);
}
Aggregations