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

java.lang.Object
  extended by com.google.api.ads.common.lib.soap.SoapServiceClient<Object>
      extended by com.google.api.ads.common.lib.client.AdsServiceClient<AdWordsSession,AdWordsServiceDescriptor>
          extended by com.google.api.ads.adwords.lib.client.AdWordsServiceClient
All Implemented Interfaces:
InvocationHandler

public class AdWordsServiceClient
extends AdsServiceClient<AdWordsSession,AdWordsServiceDescriptor>

Wrapper of underlying SOAP client which allows access for setting headers retrieved from the session.

Author:
Adam Rogal, Joseph DiLallo

Constructor Summary
AdWordsServiceClient(Object soapClient, AdWordsServiceDescriptor adWordsServiceDescriptor, AdWordsSession adWordsSession, SoapClientHandlerInterface soapClientHandler, HeaderHandler adWordsHeaderHandler, AdsServiceLoggers adsServiceLoggers)
          Constructor.
 
Method Summary
protected  Throwable handleException(Throwable e)
          Handles the exception.
 
Methods inherited from class com.google.api.ads.common.lib.client.AdsServiceClient
getAdsSession, logSoapCall, setAdsSession, setHeaders
 
Methods inherited from class com.google.api.ads.common.lib.soap.SoapServiceClient
callSoapClient, createSoapCall, getSoapClient, getSoapClientHandler, invoke, setEndpointAddress, unwrapSoapCallReturn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdWordsServiceClient

@Inject
public AdWordsServiceClient(Object soapClient,
                                   AdWordsServiceDescriptor adWordsServiceDescriptor,
                                   AdWordsSession adWordsSession,
                                   SoapClientHandlerInterface soapClientHandler,
                                   HeaderHandler adWordsHeaderHandler,
                                   AdsServiceLoggers adsServiceLoggers)
Constructor.

Parameters:
soapClient - the SOAP client
adWordsServiceDescriptor - the AdWords service descriptor
adWordsSession - the AdWords session
soapClientHandler - the SOAP client handler
adWordsHeaderHandler - the AdWords header handler
adsServiceLoggers - the ads service loggers
Method Detail

handleException

protected Throwable handleException(Throwable e)
Description copied from class: SoapServiceClient
Handles the exception.

Default behavior is to return the exception unchanged.

Overrides:
handleException in class SoapServiceClient<Object>
Parameters:
e - the exception to handle
Returns:
the exception which may have been modified (wrapped/unwrapped)
See Also:
SoapServiceClient.handleException(java.lang.Throwable)


Copyright © 2012. All Rights Reserved.