Class RemoveHeaders
- java.lang.Object
-
- com.adaptris.core.http.apache5.request.RemoveHeaders
-
- All Implemented Interfaces:
RequestInterceptorBuilder
public class RemoveHeaders extends java.lang.Object implements RequestInterceptorBuilder
Remove headers from the outgoing request.This is included for completeness; you might, for instance, want to remove the
User-Agentheader to avoid being identified as Apache-HTTP...In the adapter configuration file this class is aliased as apache-http-remove-headers which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description RemoveHeaders()RemoveHeaders(java.lang.String... list)RemoveHeaders(java.util.List<java.lang.String> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hc.core5.http.HttpRequestInterceptorbuild()java.util.List<java.lang.String>getHeaders()voidsetHeaders(java.util.List<java.lang.String> list)
-
-
-
Method Detail
-
getHeaders
public java.util.List<java.lang.String> getHeaders()
-
setHeaders
public void setHeaders(java.util.List<java.lang.String> list)
-
build
public org.apache.hc.core5.http.HttpRequestInterceptor build()
- Specified by:
buildin interfaceRequestInterceptorBuilder
-
-