public class AdWordsJaxWsHeaderHandler extends Object implements HeaderHandler<AdWordsSession,AdWordsServiceDescriptor>
HeaderHandler
for JAX-WS.HeaderHandler.NoOpHeaderHandler<S extends AdsSession,D extends AdsServiceDescriptor>
Constructor and Description |
---|
AdWordsJaxWsHeaderHandler(JaxWsHandler soapClientHandler,
com.google.api.ads.adwords.lib.conf.AdWordsApiConfiguration adWordsApiConfiguration,
com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration,
AuthorizationHeaderHandler authorizationHeaderHandler,
UserAgentCombiner userAgentCombiner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setHeaders(Object soapClient,
AdWordsSession adWordsSession,
AdWordsServiceDescriptor adWordsServiceDescriptor)
Sets the headers on the SOAP client using the session and descriptor.
|
@Inject public AdWordsJaxWsHeaderHandler(JaxWsHandler soapClientHandler, com.google.api.ads.adwords.lib.conf.AdWordsApiConfiguration adWordsApiConfiguration, com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration, AuthorizationHeaderHandler authorizationHeaderHandler, UserAgentCombiner userAgentCombiner)
soapClientHandler
- the SOAP client handleradWordsApiConfiguration
- the AdWords API configurationauthorizationHeaderHandler
- the authorization header handleruserAgentCombiner
- the full user agent providerpublic void setHeaders(Object soapClient, AdWordsSession adWordsSession, AdWordsServiceDescriptor adWordsServiceDescriptor) throws AuthenticationException, ServiceException
HeaderHandler
setHeaders
in interface HeaderHandler<AdWordsSession,AdWordsServiceDescriptor>
soapClient
- the SOAP clientadWordsSession
- the ads sessionadWordsServiceDescriptor
- the ads service descriptorAuthenticationException
- if there was a problem authenticating the
sessionServiceException
- if there was a problem setting the headersHeaderHandler.setHeaders(Object,
com.google.api.ads.common.lib.client.AdsSession,
com.google.api.ads.common.lib.client.AdsServiceDescriptor)
Copyright © 2018. All Rights Reserved.