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 |
---|---|
D |
getAdsServiceDescriptor()
Gets the ads service descriptor for this client.
|
S |
getAdsSession()
Gets the ads session for this client.
|
protected void |
logSoapCall(RemoteCallReturn remoteCallReturn)
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, unwrapRemoteCallReturn
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 D getAdsServiceDescriptor()
public void setAdsSession(S session)
session
- the ads session to set for this clientprotected void logSoapCall(RemoteCallReturn remoteCallReturn)
SoapServiceClient
logSoapCall
in class SoapServiceClient<Object>
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 headersCopyright © 2018. All Rights Reserved.