|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.gov.nehta.vendorlibrary.pcehr.clients.common.handler.ConfigurableMTOMHandler
public class ConfigurableMTOMHandler
This SOAP handler functions to workaround limitations of SOAPHandlers that breaks MTOM, resulting in binary SOAP message attachments being inlined into a single SOAP MIME part as a Base64 encoded string.If a SOAP handler is specified in the handler chain of a JAX-WS client or service, JAX-WS will call the SOAP handler before a SOAP message is sent and after a SOAP message has been received.
Field Summary | |
---|---|
static java.lang.String |
INCLUDE_ELEM
Include XML element local name. |
static java.lang.String |
XOP_INCLUDE
XOP include attribute string format (reference ID is denoted by '%s'. |
Constructor Summary | |
---|---|
ConfigurableMTOMHandler(java.lang.String requestType,
java.lang.String requestNamespace,
java.lang.String mtomElement)
A short hand version of ConfigurableMTOMHandler(requestType, requestNamespace, element, elementNamespace) where both elements share the same XML name space |
|
ConfigurableMTOMHandler(java.lang.String requestType,
java.lang.String xmlRequestNamespace,
java.lang.String mtomElement,
java.lang.String xmlElementNamespace)
ConfigurableMTOMHandler A Jax WS request Handler to ensure certain Base64 elements added as binary attachments. |
Method Summary | |
---|---|
void |
close(javax.xml.ws.handler.MessageContext context)
Does nothing Not utilised for dumping SOAP message. |
java.util.Set<javax.xml.namespace.QName> |
getHeaders()
Does nothing returns null. Ignore processing of SOAP header as the primary intention is just to 'Dump' the SOAP message |
boolean |
handleFault(javax.xml.ws.handler.soap.SOAPMessageContext context)
Ignore Fault and continues with processing logical handling of message. |
boolean |
handleMessage(javax.xml.ws.handler.soap.SOAPMessageContext context)
Updates the request to ensure byte content is correctly passed as a MTOM part. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INCLUDE_ELEM
public static final java.lang.String XOP_INCLUDE
Constructor Detail |
---|
public ConfigurableMTOMHandler(java.lang.String requestType, java.lang.String xmlRequestNamespace, java.lang.String mtomElement, java.lang.String xmlElementNamespace)
requestType
- the XML element for the Enclosing request. eg: "ProvideAndRegisterDocumentSetRequest" or "registerPCEHR"xmlRequestNamespace
- the XML name space for the requestType eg: "urn:ihe:iti:xds-b:2007"mtomElement
- the element containing bas64 content to be XOP included as a binary attachment eg: "Document"the
- XML name space of the mtomElement eg: "urn:ihe:iti:xds-b:2007"public ConfigurableMTOMHandler(java.lang.String requestType, java.lang.String requestNamespace, java.lang.String mtomElement)
requestType
- the XML element for the Enclosing request. eg: "ProvideAndRegisterDocumentSetRequest" or "registerPCEHR"xmlRequestNamespace
- the XML name space for both supplied element names eg: "urn:ihe:iti:xds-b:2007"mtomElement
- the element containing bas64 content to be XOP included as a binary attachment eg: "Document"Method Detail |
---|
public final 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 incoming / outgoing soap message context
Handler.handleMessage(javax.xml.ws.handler.MessageContext)
public final 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 incoming / outgoing soap message context
Handler.handleFault(javax.xml.ws.handler.MessageContext)
public void close(javax.xml.ws.handler.MessageContext context)
close
in interface javax.xml.ws.handler.Handler<javax.xml.ws.handler.soap.SOAPMessageContext>
context
- @see javax.xml.ws.handler.Handler#close(javax.xml.ws.handler.MessageContext)public final java.util.Set<javax.xml.namespace.QName> getHeaders()
getHeaders
in interface javax.xml.ws.handler.soap.SOAPHandler<javax.xml.ws.handler.soap.SOAPMessageContext>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |