public class TokenAuthInterceptor extends RequestInterceptor
Modifier and Type | Field and Description |
---|---|
protected String |
token |
protected static String |
TOKEN_HEADER |
Constructor and Description |
---|
TokenAuthInterceptor(String token) |
Modifier and Type | Method and Description |
---|---|
com.sun.jersey.api.client.ClientResponse |
handle(com.sun.jersey.api.client.ClientRequest cr) |
void |
processRequest(Request request,
Connector connector) |
protected static final String TOKEN_HEADER
public TokenAuthInterceptor(String token)
public void processRequest(Request request, Connector connector)
processRequest
in class RequestInterceptor
public com.sun.jersey.api.client.ClientResponse handle(com.sun.jersey.api.client.ClientRequest cr) throws com.sun.jersey.api.client.ClientHandlerException
handle
in interface com.sun.jersey.api.client.ClientHandler
handle
in class RequestInterceptor
com.sun.jersey.api.client.ClientHandlerException
Copyright © 2015 Nuxeo SA. All rights reserved.