public class DfaServiceClient extends AdsServiceClient<DfaSession,DfaServiceDescriptor>
Constructor and Description |
---|
DfaServiceClient(Object soapClient,
DfaServiceDescriptor dfaServiceDescriptor,
DfaSession dfaSession,
SoapClientHandlerInterface soapClientHandler,
HeaderHandler dfaHeaderHandler,
AdsServiceLoggers adsServiceLoggers,
TokenExpirationDetector tokenExpirationDetector,
LoginTokens loginTokens)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected SoapCallReturn |
callSoapClient(SoapCall<Object> soapCall)
Wraps calls to the SOAP client and listens for errors stating that the DFA token has expired.
|
getAdsServiceDescriptor, getAdsSession, logSoapCall, setAdsSession, setHeaders
createSoapCall, getSoapClient, getSoapClientHandler, handleException, invoke, setEndpointAddress, unwrapSoapCallReturn
@Inject public DfaServiceClient(Object soapClient, DfaServiceDescriptor dfaServiceDescriptor, DfaSession dfaSession, SoapClientHandlerInterface soapClientHandler, HeaderHandler dfaHeaderHandler, AdsServiceLoggers adsServiceLoggers, TokenExpirationDetector tokenExpirationDetector, LoginTokens loginTokens) throws ServiceException
soapClient
- the SOAP clientdfaServiceDescriptor
- the DFA service descriptordfaSession
- the DFA sessionsoapClientHandler
- the SOAP client handlerdfaHeaderHandler
- the DFA header handleradsServiceLoggers
- the ads service loggerstokenExpirationDetector
- the detector for expired DFA token errorsloginTokens
- the utility for regenerating DFA tokensServiceException
protected SoapCallReturn callSoapClient(SoapCall<Object> soapCall)
callSoapClient
in class SoapServiceClient<Object>
soapCall
- the call to send to the SOAP clientsoapCall
Copyright © 2015. All Rights Reserved.