Class AuthorizationFilter
- java.lang.Object
-
- com.artisol.teneo.studio.client.filters.AuthorizationFilter
-
- All Implemented Interfaces:
javax.ws.rs.client.ClientRequestFilter
public class AuthorizationFilter extends Object implements javax.ws.rs.client.ClientRequestFilter
Adds authorization header ifaccessToken
is initialized
-
-
Constructor Summary
Constructors Constructor Description AuthorizationFilter(String accessToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(javax.ws.rs.client.ClientRequestContext clientRequestContext)
void
setAccessToken(String accessToken)
-
-
-
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 interfacejavax.ws.rs.client.ClientRequestFilter
-
-