com.google.api.ads.adwords.lib.client
Class AdWordsAxisHeaderHandler

java.lang.Object
  extended by com.google.api.ads.adwords.lib.client.AdWordsAxisHeaderHandler
All Implemented Interfaces:
HeaderHandler<AdWordsSession,AdWordsServiceDescriptor>

public class AdWordsAxisHeaderHandler
extends Object
implements HeaderHandler<AdWordsSession,AdWordsServiceDescriptor>

AdWords implementation of HeaderHandler for Axis.

Author:
Adam Rogal

Constructor Summary
AdWordsAxisHeaderHandler(SoapClientHandlerInterface soapClientHandler, OAuthAuthorizationHeaderProvider oAuthAuthorizationHeaderProvider, OAuth2AuthorizationHeaderProvider oAuth2AuthorizationHeaderProvider, com.google.api.ads.adwords.lib.conf.AdWordsApiConfiguration adWordsApiConfiguration, com.google.api.ads.adwords.lib.conf.AdWordsBuildConfiguration adWordsBuildConfiguration)
          Constructor.
 
Method Summary
 void setHeaders(Object soapClient, AdWordsSession adWordsSession, AdWordsServiceDescriptor adWordsServiceDescriptor)
          Sets the headers on the SOAP client using the session and descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdWordsAxisHeaderHandler

@Inject
public AdWordsAxisHeaderHandler(SoapClientHandlerInterface soapClientHandler,
                                       OAuthAuthorizationHeaderProvider oAuthAuthorizationHeaderProvider,
                                       OAuth2AuthorizationHeaderProvider oAuth2AuthorizationHeaderProvider,
                                       com.google.api.ads.adwords.lib.conf.AdWordsApiConfiguration adWordsApiConfiguration,
                                       com.google.api.ads.adwords.lib.conf.AdWordsBuildConfiguration adWordsBuildConfiguration)
Constructor.

Parameters:
soapClientHandler - the SOAP client handler
oAuthAuthorizationHeaderProvider - the OAuth header provider
adWordsApiConfiguration - the AdWords API configuration
Method Detail

setHeaders

public void setHeaders(Object soapClient,
                       AdWordsSession adWordsSession,
                       AdWordsServiceDescriptor adWordsServiceDescriptor)
                throws AuthenticationException,
                       ServiceException
Description copied from interface: HeaderHandler
Sets the headers on the SOAP client using the session and descriptor.

Specified by:
setHeaders in interface HeaderHandler<AdWordsSession,AdWordsServiceDescriptor>
Parameters:
soapClient - the SOAP client
adWordsSession - the ads session
adWordsServiceDescriptor - the ads service descriptor
Throws:
AuthenticationException - if there was a problem authenticating the session
ServiceException - if there was a problem setting the headers
See Also:
HeaderHandler.setHeaders(Object, com.google.api.ads.common.lib.client.AdsSession, com.google.api.ads.common.lib.client.AdsServiceDescriptor)


Copyright © 2012. All Rights Reserved.