public class JaxWsSoapContextHandler extends Object implements SOAPHandler<SOAPMessageContext>
Constructor and Description |
---|
JaxWsSoapContextHandler(NodeExtractor nodeExtractor,
com.google.api.ads.common.lib.conf.AdsApiConfiguration adsApiConfiguration) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String namespace,
String headerName,
SOAPElement headerValue)
Adds a header to the list of SOAP request headers.
|
void |
clearHeaders()
Clears all the headers set in this handler.
|
void |
close(MessageContext messageContext) |
Set<SOAPElement> |
getAddedHeaders()
Returns the set of SOAP headers added to this handler.
|
Set<QName> |
getHeaders() |
String |
getLastOperationCalled()
Returns the name of the last SOAP operation through this handler.
|
String |
getLastRequestId()
Returns the request ID from the last SOAP response XML message handled by this object.
|
String |
getLastRequestXml()
Returns the last SOAP request XML message handled by this object.
|
String |
getLastResponseXml()
Returns the last SOAP response XML message handled by this object.
|
String |
getLastServiceCalled()
Returns the name of the last SOAP service contacted through handler.
|
boolean |
handleFault(SOAPMessageContext context)
Captures pertinent information from a message representing a SOAP fault.
|
boolean |
handleMessage(SOAPMessageContext context)
Captures pertinent information from SOAP messages exchanged by the SOAP
service this handler is attached to.
|
public JaxWsSoapContextHandler(NodeExtractor nodeExtractor, com.google.api.ads.common.lib.conf.AdsApiConfiguration adsApiConfiguration)
nodeExtractor
- required; used to extract request ID from SOAP responses.public boolean handleMessage(SOAPMessageContext context)
handleMessage
in interface Handler<SOAPMessageContext>
context
- the context of the SOAP message passing through this handlerHandler.handleMessage(MessageContext)
public String getLastOperationCalled()
public String getLastServiceCalled()
public boolean handleFault(SOAPMessageContext context)
handleFault
in interface Handler<SOAPMessageContext>
context
- the context of the SOAP message passing through this handlerHandler.handleFault(MessageContext)
public String getLastRequestXml()
public String getLastResponseXml()
public String getLastRequestId()
public void addHeader(String namespace, String headerName, SOAPElement headerValue)
namespace
- the namespace the header belongs toheaderName
- the name of the header elementheaderValue
- the value of the header elementpublic void clearHeaders()
public Set<SOAPElement> getAddedHeaders()
public Set<QName> getHeaders()
getHeaders
in interface SOAPHandler<SOAPMessageContext>
SOAPHandler.getHeaders()
public void close(MessageContext messageContext)
close
in interface Handler<SOAPMessageContext>
Handler.close(MessageContext)
Copyright © 2017. All Rights Reserved.