TracEE binding for Apache HttpComponents (4.x)

TODO Wrapper for apache http client 4+

This module contains two interceptors: * TraceeHttpRequestInterceptor: Implements the HttpRequestInterceptor interface to add the tracee header to the request. * TraceeHttpResponseInterceptor: Implements the HttpResponseInterceptor to extract the tracee header from the response.

Installation

<dependencies>
...
    <dependency>
        <groupId>io.tracee.binding</groupId>
   		<artifactId>tracee-httpcomponents</artifactId>
        <version>RELEASE</version>
    </dependency>
...
</dependencies>

Then add simply two interceptors to your HttpClient of the httpcomponents module:

DefaultHttpClient httpClient = new DefaultHttpClient();
httpClient.addRequestInterceptor(new TraceeHttpRequestInterceptor());
httpClient.addResponseInterceptor(new TraceeHttpResponseInterceptor());

License

This project is released under the revised BSD License.

Social Links

Imprint

Web-Template based on SOLID by Carlos Alvarez and remixed according to the Creative Commons Attribution 3.0 License.