com.google.api.ads.dfp.lib.client
Class DfpServiceClient

java.lang.Object
  extended by com.google.api.ads.common.lib.soap.SoapServiceClient<Object>
      extended by com.google.api.ads.common.lib.client.AdsServiceClient<DfpSession,DfpServiceDescriptor>
          extended by com.google.api.ads.dfp.lib.client.DfpServiceClient
All Implemented Interfaces:
InvocationHandler

public class DfpServiceClient
extends AdsServiceClient<DfpSession,DfpServiceDescriptor>

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

Author:
Adam Rogal

Constructor Summary
DfpServiceClient(Object soapClient, DfpServiceDescriptor dfpServiceDescriptor, DfpSession dfpSession, SoapClientHandlerInterface soapClientHandler, HeaderHandler dfpHeaderHandler, 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

DfpServiceClient

@Inject
public DfpServiceClient(Object soapClient,
                               DfpServiceDescriptor dfpServiceDescriptor,
                               DfpSession dfpSession,
                               SoapClientHandlerInterface soapClientHandler,
                               HeaderHandler dfpHeaderHandler,
                               AdsServiceLoggers adsServiceLoggers)
Constructor.

Parameters:
soapClient - the SOAP client
dfpServiceDescriptor - the DFP service descriptor
dfpSession - the DFP session
soapClientHandler - the SOAP client handler
dfpHeaderHandler - the DFP 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.