Class IgnoreHeadersTransformer

  • All Implemented Interfaces:
    com.google.common.base.Function<Exchange,​Exchange>, java.util.function.Function<Exchange,​Exchange>

    public class IgnoreHeadersTransformer
    extends java.lang.Object
    implements com.google.common.base.Function<Exchange,​Exchange>
    Transforms an exchange into a new one where given headers are removed.
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Exchange apply​(Exchange exchange)  
      static com.google.common.base.Function<Exchange,​Exchange> ignoreCommonHeaders()
      Predefined transformer removing common headers unnecessary in comparisons: connection host accept user-agent accept-encoding content-length x-client-timestamp x-server-timestamp
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • IgnoreHeadersTransformer

        public IgnoreHeadersTransformer​(java.lang.String... headers)
    • Method Detail

      • ignoreCommonHeaders

        public static com.google.common.base.Function<Exchange,​Exchange> ignoreCommonHeaders()
        Predefined transformer removing common headers unnecessary in comparisons:
        • connection
        • host
        • accept
        • user-agent
        • accept-encoding
        • content-length
        • x-client-timestamp
        • x-server-timestamp
        Returns:
        Function