public class AdManagerJaxWsHeaderHandler extends Object implements HeaderHandler<AdManagerSession,AdManagerServiceDescriptor>
HeaderHandler for JAX-WS.HeaderHandler.NoOpHeaderHandler<S extends AdsSession,D extends AdsServiceDescriptor>| Constructor and Description |
|---|
AdManagerJaxWsHeaderHandler(JaxWsHandler soapClientHandler,
com.google.api.ads.admanager.lib.conf.AdManagerApiConfiguration adManagerApiConfiguration,
com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration,
AuthorizationHeaderHandler authorizationHeaderHandler,
AdManagerHttpHeaderHandler adManagerHttpHeaderHandler,
UserAgentCombiner userAgentCombiner)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setHeaders(Object soapClient,
AdManagerSession adManagerSession,
AdManagerServiceDescriptor adManagerServiceDescriptor)
Sets the headers on the SOAP client using the session and descriptor.
|
@Inject public AdManagerJaxWsHeaderHandler(JaxWsHandler soapClientHandler, com.google.api.ads.admanager.lib.conf.AdManagerApiConfiguration adManagerApiConfiguration, com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration, AuthorizationHeaderHandler authorizationHeaderHandler, AdManagerHttpHeaderHandler adManagerHttpHeaderHandler, UserAgentCombiner userAgentCombiner)
soapClientHandler - the SOAP client handleradManagerApiConfiguration - the Ad Manager API configurationauthorizationHeaderHandler - the authorization header handleruserAgentCombiner - the full user agent providerpublic void setHeaders(Object soapClient, AdManagerSession adManagerSession, AdManagerServiceDescriptor adManagerServiceDescriptor) throws AuthenticationException, ServiceException
HeaderHandlersetHeaders in interface HeaderHandler<AdManagerSession,AdManagerServiceDescriptor>soapClient - the SOAP clientadManagerSession - the ads sessionadManagerServiceDescriptor - 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 © 2020. All Rights Reserved.