|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.common.lib.soap.SoapClientHandler<Object>
com.google.api.ads.common.lib.soap.testing.TestHandler
public class TestHandler
Test SOAP Client Handler implementation.
| Constructor Summary | |
|---|---|
TestHandler()
|
|
| Method Summary | |
|---|---|
void |
clearHeaders(Object soapClient)
Clears all of the SOAP headers from the given SOAP client. |
Object |
createSoapClient(SoapServiceDescriptor soapServiceDescriptor)
Creates a SOAP client using a SOAP service descriptor. |
javax.xml.soap.SOAPHeaderElement |
createSoapHeaderElement(QName qName)
Creates a SOAP header element object specific to the framework that this handler works with. |
String |
getEndpointAddress(Object soapClient)
Gets the endpoint address on the SOAP client. |
Object |
getHeader(Object soapClient,
String headerName)
Returns a SOAP header from the given SOAP client, if it exists. |
SoapCallReturn |
invokeSoapCall(SoapCall<Object> soapCall)
Invoke a SOAP call. |
void |
putAllHttpHeaders(Object soapClient,
Map<String,String> headersMap)
Puts all headers into the existing HTTP headers of the SOAP client, overwriting any existing header keys. |
void |
setCompression(Object soapClient,
boolean compress)
Set whether SOAP requests should use compression. |
void |
setEndpointAddress(Object soapClient,
String endpointAddress)
Sets the endpoint address of the given SOAP client. |
void |
setHeader(Object soapClient,
String namespace,
String headerName,
Object headerValue)
Sets a SOAP header for the given SOAP client. |
| Methods inherited from class com.google.api.ads.common.lib.soap.SoapClientHandler |
|---|
getSoapClientMethod, invoke, processSoapArguments |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestHandler()
| Method Detail |
|---|
public void setEndpointAddress(Object soapClient,
String endpointAddress)
soapClient - the SOAP client to set the endpoint address forendpointAddress - the target endpoint address
public Object getHeader(Object soapClient,
String headerName)
soapClient - the SOAP client to check for the given headerheaderName - the name of the header being looked for
public void clearHeaders(Object soapClient)
soapClient - the client to remove the headers from
public void setHeader(Object soapClient,
String namespace,
String headerName,
Object headerValue)
soapClient - the client to receive the given headernamespace - the namespace the header belongs toheaderName - the name of the header to setheaderValue - the value that the header should have
ServiceException - thrown if the headers could not be set
public void setCompression(Object soapClient,
boolean compress)
soapClient - the client to set compression settings forcompress - whether or not to use compression
public Object createSoapClient(SoapServiceDescriptor soapServiceDescriptor)
throws ServiceException
soapServiceDescriptor - the descriptor to use for creating a client
ServiceException - thrown if the SOAP client cannot be createdpublic SoapCallReturn invokeSoapCall(SoapCall<Object> soapCall)
soapCall - the call to make to a SOAP web service
public javax.xml.soap.SOAPHeaderElement createSoapHeaderElement(QName qName)
SoapClientHandlerInterface
qName - qualified name of the header element
createSoapHeaderElement(javax.xml.namespace.QName)public String getEndpointAddress(Object soapClient)
SoapClientHandlerInterface
getEndpointAddress(java.lang.Object)
public void putAllHttpHeaders(Object soapClient,
Map<String,String> headersMap)
SoapClientHandlerInterface
soapClient - the SOAP client to set the headers onheadersMap - the map of headers in the form of header name to valueputAllHttpHeaders(java.lang.Object, java.util.Map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||