Class HttpHeadersFactory


  • public class HttpHeadersFactory
    extends Object
    • Method Detail

      • createWithAuthorizationBearerHeader

        public static HttpHeaders createWithAuthorizationBearerHeader​(String token)
        Adds the Authorization: Bearer <token> header to the set of headers.
        Parameters:
        token - - the token which should be part of the header.
        Returns:
        the builder instance.
      • createWithoutAuthorizationHeader

        public static HttpHeaders createWithoutAuthorizationHeader()
        Creates the set of HTTP headers with client-credentials basic authentication header.
        Returns:
        the HTTP headers.