S
- the type of AdsSession
D
- the type of AdsServiceDescriptor
public abstract class AdsServiceClient<S extends AdsSession,D extends AdsServiceDescriptor> extends SoapServiceClient<Object>
This class connects the user, handler, and underlying service client. It fulfills:
Constructor and Description |
---|
AdsServiceClient(Object soapClient,
S adsSession,
D adsServiceDescriptor,
SoapClientHandlerInterface<Object> soapClientHandler,
HeaderHandler<S,D> headerHandler,
AdsServiceLoggers adsServiceLoggers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
S |
getAdsSession()
Gets the ads session for this client.
|
protected void |
logSoapCall(SoapCallReturn soapCallReturn)
Logs a SOAP call.
|
void |
setAdsSession(S session)
Sets the ads session for this client.
|
protected void |
setHeaders()
Sets the headers for the service client.
|
callSoapClient, createSoapCall, getSoapClient, getSoapClientHandler, handleException, invoke, setEndpointAddress, unwrapSoapCallReturn
public AdsServiceClient(Object soapClient, S adsSession, D adsServiceDescriptor, SoapClientHandlerInterface<Object> soapClientHandler, HeaderHandler<S,D> headerHandler, AdsServiceLoggers adsServiceLoggers)
soapClient
- the SOAP clientadsSession
- the sessionadsServiceDescriptor
- the service descriptorsoapClientHandler
- the SOAP client handlerheaderHandler
- the header handleradsServiceLoggers
- the loggerspublic S getAdsSession()
public void setAdsSession(S session)
session
- the ads session to set for this clientprotected void logSoapCall(SoapCallReturn soapCallReturn)
SoapServiceClient
logSoapCall
in class SoapServiceClient<Object>
logSoapCall(SoapCallReturn)
protected void setHeaders() throws ServiceException, AuthenticationException
SoapServiceClient
setHeaders
in class SoapServiceClient<Object>
ServiceException
- if there was a problem setting the headersAuthenticationException
- if there was a problem authenticating while
setting headerssetHeaders()
Copyright © 2013. All Rights Reserved.