public class AbstractHandler extends Object implements CallHandler
CallHandler
for selective implementations (handle only outgoing calls, or only responses).Constructor and Description |
---|
AbstractHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addHeader(SOAPHeader header,
QName name,
String value)
Helper to set an element on the SOAP header of the outgoing call
|
void |
handleRequest(GCoreService<?> target,
SOAPHeader header,
SOAPMessageContext context)
Handles an outgoing call.
|
void |
handleResponse(GCoreService<?> target,
SOAPMessageContext context)
Handles the response to a call.
|
public void handleRequest(GCoreService<?> target, SOAPHeader header, SOAPMessageContext context) throws Exception
CallHandler
handleRequest
in interface CallHandler
target
- information about the target serviceheader
- the SOAP header of the callcontext
- the JAX-WS call contextException
- if the call cannot be handledpublic void handleResponse(GCoreService<?> target, SOAPMessageContext context) throws Exception
CallHandler
handleResponse
in interface CallHandler
target
- information about the target servicecontext
- the JAX-WS call contextException
- if the response cannot be handledprotected final void addHeader(SOAPHeader header, QName name, String value) throws SOAPException
header
- the SOAP headername
- the name the element's namevalue
- the element's valueSOAPException
- if the element cannot be added to the headerCopyright © 2019. All Rights Reserved.