Interface HeaderInjector


  • public interface HeaderInjector
    Used to inject a header into a networking library's underlying outgoing request object.

    Can be implemented as a lambda in Java 8 and as an anonymous inner class in Java 7.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addHeader​(java.lang.String headerName, java.lang.String headerValue)
      Injects a header key and value into the underlying request object of an networking library
    • Method Detail

      • addHeader

        void addHeader​(java.lang.String headerName,
                       java.lang.String headerValue)
        Injects a header key and value into the underlying request object of an networking library
        Parameters:
        headerName - the name of the header
        headerValue - the value of the header