public class JaxWsSoapContextHandler extends Object implements SOAPHandler<SOAPMessageContext>
Constructor and Description |
---|
JaxWsSoapContextHandler(RequestInfoXPathSet requestInfoXPathSet,
ResponseInfoXPathSet responseInfoXPathSet) |
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() |
RequestInfo.Builder |
getLastRequestInfoBuilder()
Returns info for the last SOAP request.
|
ResponseInfo.Builder |
getLastResponseInfoBuilder()
Returns info for the last SOAP response.
|
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.
|
@Inject public JaxWsSoapContextHandler(RequestInfoXPathSet requestInfoXPathSet, ResponseInfoXPathSet responseInfoXPathSet)
public boolean handleMessage(SOAPMessageContext context)
handleMessage
in interface Handler<SOAPMessageContext>
context
- the context of the SOAP message passing through this handlerHandler.handleMessage(MessageContext)
public boolean handleFault(SOAPMessageContext context)
handleFault
in interface Handler<SOAPMessageContext>
context
- the context of the SOAP message passing through this handlerHandler.handleFault(MessageContext)
public RequestInfo.Builder getLastRequestInfoBuilder()
public ResponseInfo.Builder getLastResponseInfoBuilder()
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 © 2018. All Rights Reserved.