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

java.lang.Object
  extended by com.google.api.ads.dfp.lib.client.DfpJaxWsHeaderHandler
All Implemented Interfaces:
HeaderHandler<DfpSession,DfpServiceDescriptor>

public class DfpJaxWsHeaderHandler
extends Object
implements HeaderHandler<DfpSession,DfpServiceDescriptor>

DFP implementation of HeaderHandler for JAX-WS.

Author:
Joseph DiLallo, Jeff Sham

Constructor Summary
DfpJaxWsHeaderHandler(SoapClientHandlerInterface soapClientHandler, OAuthAuthorizationHeaderProvider oAuthAuthorizationHeaderProvider, OAuth2AuthorizationHeaderProvider oAuth2AuthorizationHeaderProvider, com.google.api.ads.dfp.lib.conf.DfpApiConfiguration dfpApiConfiguration, com.google.api.ads.dfp.lib.conf.DfpBuildConfiguration dfpBuildConfiguration)
          Constructor.
 
Method Summary
 void setHeaders(Object soapClient, DfpSession dfpSession, DfpServiceDescriptor dfpServiceDescriptor)
          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

DfpJaxWsHeaderHandler

@Inject
public DfpJaxWsHeaderHandler(SoapClientHandlerInterface soapClientHandler,
                                    OAuthAuthorizationHeaderProvider oAuthAuthorizationHeaderProvider,
                                    OAuth2AuthorizationHeaderProvider oAuth2AuthorizationHeaderProvider,
                                    com.google.api.ads.dfp.lib.conf.DfpApiConfiguration dfpApiConfiguration,
                                    com.google.api.ads.dfp.lib.conf.DfpBuildConfiguration dfpBuildConfiguration)
Constructor.

Parameters:
soapClientHandler - the SOAP client handler
oAuthAuthorizationHeaderProvider - the OAuth header provider
oAuth2AuthorizationHeaderProvider - the OAuth2 header provider
dfpApiConfiguration - the DFP API configuration
dfpBuildConfiguration - the DFP build configuration
Method Detail

setHeaders

public void setHeaders(Object soapClient,
                       DfpSession dfpSession,
                       DfpServiceDescriptor dfpServiceDescriptor)
                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<DfpSession,DfpServiceDescriptor>
Parameters:
soapClient - the SOAP client
dfpSession - the ads session
dfpServiceDescriptor - 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.