public class DfpJaxWsHeaderHandler extends Object implements HeaderHandler<DfpSession,DfpServiceDescriptor>
HeaderHandler for JAX-WS.HeaderHandler.NoOpHeaderHandler<S extends AdsSession,D extends AdsServiceDescriptor>| Constructor and Description |
|---|
DfpJaxWsHeaderHandler(JaxWsHandler soapClientHandler,
com.google.api.ads.dfp.lib.conf.DfpApiConfiguration dfpApiConfiguration,
com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration,
AuthorizationHeaderHandler authorizationHeaderHandler,
DfpHttpHeaderHandler dfpHttpHeaderHandler,
UserAgentCombiner userAgentCombiner)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setHeaders(Object soapClient,
DfpSession dfpSession,
DfpServiceDescriptor dfpServiceDescriptor)
Sets the headers on the SOAP client using the session and descriptor.
|
@Inject public DfpJaxWsHeaderHandler(JaxWsHandler soapClientHandler, com.google.api.ads.dfp.lib.conf.DfpApiConfiguration dfpApiConfiguration, com.google.api.ads.common.lib.conf.AdsLibConfiguration adsLibConfiguration, AuthorizationHeaderHandler authorizationHeaderHandler, DfpHttpHeaderHandler dfpHttpHeaderHandler, UserAgentCombiner userAgentCombiner)
soapClientHandler - the SOAP client handlerdfpApiConfiguration - the DFP API configurationauthorizationHeaderHandler - the authorization header handleruserAgentCombiner - the full user agent providerpublic void setHeaders(Object soapClient, DfpSession dfpSession, DfpServiceDescriptor dfpServiceDescriptor) throws AuthenticationException, ServiceException
HeaderHandlersetHeaders in interface HeaderHandler<DfpSession,DfpServiceDescriptor>soapClient - the SOAP clientdfpSession - the ads sessiondfpServiceDescriptor - 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 © 2016. All Rights Reserved.