public class JaxWsSoapContextHandler extends Object implements javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
Constructor and Description |
---|
JaxWsSoapContextHandler()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String namespace,
String headerName,
javax.xml.soap.SOAPElement headerValue)
Adds a header to the list of SOAP request headers.
|
void |
clearHeaders()
Clears all the headers set in this handler.
|
void |
close(javax.xml.ws.handler.MessageContext messageContext) |
Set<javax.xml.soap.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 |
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(javax.xml.ws.handler.soap.SOAPMessageContext context)
Captures pertinent information from a message representing a SOAP fault.
|
boolean |
handleMessage(javax.xml.ws.handler.soap.SOAPMessageContext context)
Captures pertinent information from SOAP messages exchanged by the SOAP
service this handler is attached to.
|
public boolean handleMessage(javax.xml.ws.handler.soap.SOAPMessageContext context)
handleMessage
in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
context
- the context of the SOAP message passing through this handlerHandler.handleMessage(MessageContext)
public String getLastOperationCalled()
public String getLastServiceCalled()
public boolean handleFault(javax.xml.ws.handler.soap.SOAPMessageContext context)
handleFault
in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
context
- the context of the SOAP message passing through this handlerHandler.handleFault(MessageContext)
public String getLastRequestXml()
public String getLastResponseXml()
public void addHeader(String namespace, String headerName, javax.xml.soap.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<javax.xml.soap.SOAPElement> getAddedHeaders()
public Set<QName> getHeaders()
getHeaders
in interface javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
SOAPHandler.getHeaders()
public void close(javax.xml.ws.handler.MessageContext messageContext)
close
in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
Handler.close(MessageContext)
Copyright © 2015. All Rights Reserved.