Class 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-Agent header 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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.hc.core5.http.HttpRequestInterceptor build()  
      java.util.List<java.lang.String> getHeaders()  
      void setHeaders​(java.util.List<java.lang.String> list)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoveHeaders

        public RemoveHeaders()
      • RemoveHeaders

        public RemoveHeaders​(java.lang.String... list)
      • RemoveHeaders

        public RemoveHeaders​(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)