com.google.api.ads.common.lib.soap
Class AuthorizationHeaderHandler
java.lang.Object
com.google.api.ads.common.lib.soap.AuthorizationHeaderHandler
public class AuthorizationHeaderHandler
- extends Object
Handler for Authorization headers that can be set on the SOAP
client.
- Author:
- Adam Rogal
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthorizationHeaderHandler
@Inject
public AuthorizationHeaderHandler(SoapClientHandlerInterface soapClientHandler,
AuthorizationHeaderProvider authorizationHeaderProvider)
- Constructor.
- Parameters:
soapClientHandler - the SOAP client handlerauthorizationHeaderProvider - the authorization header provider
setAuthorization
public void setAuthorization(Object soapClient,
AdsSession adsSession)
throws AuthenticationException
- Sets the authorization header created from the session on the soap client.
- Parameters:
soapClient - the SOAP client to set the HTTP header onadsSession - the session
- Throws:
AuthenticationException - if the authorization header could not be
created
Copyright © 2012. All Rights Reserved.