Class AuthorizationFilter

  • All Implemented Interfaces:
    javax.ws.rs.client.ClientRequestFilter

    public class AuthorizationFilter
    extends Object
    implements javax.ws.rs.client.ClientRequestFilter
    Adds authorization header if accessToken is initialized
    • Constructor Detail

      • AuthorizationFilter

        public AuthorizationFilter​(String accessToken)
    • Method Detail

      • setAccessToken

        public void setAccessToken​(String accessToken)
      • filter

        public void filter​(javax.ws.rs.client.ClientRequestContext clientRequestContext)
        Specified by:
        filter in interface javax.ws.rs.client.ClientRequestFilter