com.google.api.ads.common.lib.soap
Class AuthorizationHeaderHandler

java.lang.Object
  extended by 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

Constructor Summary
AuthorizationHeaderHandler(SoapClientHandlerInterface soapClientHandler, AuthorizationHeaderProvider authorizationHeaderProvider)
          Constructor.
 
Method Summary
 void setAuthorization(Object soapClient, AdsSession adsSession)
          Sets the authorization header created from the session on the soap client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationHeaderHandler

@Inject
public AuthorizationHeaderHandler(SoapClientHandlerInterface soapClientHandler,
                                         AuthorizationHeaderProvider authorizationHeaderProvider)
Constructor.

Parameters:
soapClientHandler - the SOAP client handler
authorizationHeaderProvider - the authorization header provider
Method Detail

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 on
adsSession - the session
Throws:
AuthenticationException - if the authorization header could not be created


Copyright © 2012. All Rights Reserved.