|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.dfa.lib.client.DfaAxisHeaderHandler
public class DfaAxisHeaderHandler
DFA implementation of HeaderHandler.
| Constructor Summary | |
|---|---|
DfaAxisHeaderHandler(SoapClientHandlerInterface soapClientHandler,
com.google.api.ads.dfa.lib.conf.DfaApiConfiguration dfaApiConfiguration,
LoginTokens loginTokens,
com.google.api.ads.dfa.lib.conf.DfaBuildConfiguration dfaBuildConfiguration)
Constructor. |
|
| Method Summary | |
|---|---|
protected String |
generateAuthToken(DfaServiceDescriptor dfaServiceDescriptor,
DfaSession dfaSession)
Generates an authentication token for use with the current session. |
void |
setHeaders(Object soapClient,
DfaSession dfaSession,
DfaServiceDescriptor dfaServiceDescriptor)
Sets the headers on the SOAP client using the session and descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public DfaAxisHeaderHandler(SoapClientHandlerInterface soapClientHandler,
com.google.api.ads.dfa.lib.conf.DfaApiConfiguration dfaApiConfiguration,
LoginTokens loginTokens,
com.google.api.ads.dfa.lib.conf.DfaBuildConfiguration dfaBuildConfiguration)
soapClientHandler - the SOAP client handlerdfaApiConfiguration - the DFA API configurationloginTokens - the login ticket provider| Method Detail |
|---|
public void setHeaders(Object soapClient,
DfaSession dfaSession,
DfaServiceDescriptor dfaServiceDescriptor)
throws AuthenticationException,
ServiceException
HeaderHandler
setHeaders in interface HeaderHandler<DfaSession,DfaServiceDescriptor>soapClient - the SOAP clientdfaSession - the ads sessiondfaServiceDescriptor - the ads service descriptor
AuthenticationException - if there was a problem authenticating the
session
ServiceException - 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)
protected String generateAuthToken(DfaServiceDescriptor dfaServiceDescriptor,
DfaSession dfaSession)
throws LoginTokenException
dfaServiceDescriptor - the DFA service descriptordfaSession - the session in use
LoginTokenException - thrown if generating a token fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||