Package com.adaptris.core.http.apache5
Class CompositeRequestHeaders
- java.lang.Object
-
- com.adaptris.core.http.apache5.CompositeRequestHeaders
-
- All Implemented Interfaces:
RequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase>
public class CompositeRequestHeaders extends java.lang.Object implements RequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase>
Implementation ofRequestHeaderProviderthat uses its own configured handlers to add headers.This implementation is primarily so that you can mix and match both static and metadata driven headers; the order in which you configure them determines what is actually present as headers.
In the adapter configuration file this class is aliased as apache-http-composite-request-headers which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description CompositeRequestHeaders()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHandler(RequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase> handler)org.apache.hc.client5.http.classic.methods.HttpUriRequestBaseaddHeaders(AdaptrisMessage msg, org.apache.hc.client5.http.classic.methods.HttpUriRequestBase target)java.util.List<RequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase>>getProviders()voidsetProviders(java.util.List<RequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase>> handlers)
-
-
-
Method Detail
-
addHeaders
public org.apache.hc.client5.http.classic.methods.HttpUriRequestBase addHeaders(AdaptrisMessage msg, org.apache.hc.client5.http.classic.methods.HttpUriRequestBase target)
- Specified by:
addHeadersin interfaceRequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase>
-
getProviders
public java.util.List<RequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase>> getProviders()
-
setProviders
public void setProviders(java.util.List<RequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase>> handlers)
-
addHandler
public void addHandler(RequestHeaderProvider<org.apache.hc.client5.http.classic.methods.HttpUriRequestBase> handler)
-
-