|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4cics.jbi.processor.wsdl11wrapper.WrapperUtil
public class WrapperUtil
Field Summary | |
---|---|
static java.lang.String |
WRAPPER_ATTRIBUTE_NAME
|
static java.lang.String |
WRAPPER_ATTRIBUTE_TYPE
|
static java.lang.String |
WRAPPER_ATTRIBUTE_VERSION
|
static java.lang.String |
WRAPPER_ATTRIBUTE_VERSION_VALUE
|
static java.lang.String |
WRAPPER_DEFAULT_NAMESPACE
|
static java.lang.String |
WRAPPER_DEFAULT_NAMESPACE_PREFIX
Constants to build wsdl 1.1 wrapper, e.g. |
static java.lang.String |
WRAPPER_MESSAGE
|
static java.lang.String |
WRAPPER_PART
|
Constructor Summary | |
---|---|
WrapperUtil()
void constructor. |
Method Summary | |
---|---|
static org.w3c.dom.Element |
createJBIMessageWrapper(org.w3c.dom.Document normalDoc,
javax.xml.namespace.QName type,
java.lang.String name)
Creates and returns a JBI message wrapper element. |
static org.w3c.dom.Element |
createJBIWrappedPart(org.w3c.dom.Document normalDoc,
org.w3c.dom.Node part)
Creates and returns a JBI part wrapper element. |
static org.w3c.dom.Element |
createJBIWrappedPart(org.w3c.dom.Document normalDoc,
org.w3c.dom.NodeList part)
Creates and returns a JBI part wrapper element. |
static org.w3c.dom.Element |
importJBIWrappedPart(org.w3c.dom.Document normalDoc,
org.w3c.dom.Node part)
Creates and returns a JBI part wrapper element. |
static org.w3c.dom.Element |
importJBIWrappedPart(org.w3c.dom.Document normalDoc,
org.w3c.dom.NodeList part)
Creates and returns a JBI part wrapper element. |
static boolean |
isMessageWrapped(org.w3c.dom.Document doc)
|
static boolean |
isMessageWrapped(javax.xml.stream.XMLStreamReader docReader)
|
static javax.xml.transform.Source |
jbiMessageWrapper(java.lang.String msgContent,
javax.xml.namespace.QName qName,
java.lang.String name)
Gets a JBI wrapper. |
static java.lang.String |
toXml(org.w3c.dom.Node node,
java.lang.String encoding,
boolean omitXMLDeclaration)
Converts the xml documet to a String. |
static javax.xml.stream.XMLStreamReader |
unWrapMessage(javax.xml.stream.XMLStreamReader docReader)
UnWraps a normalized WSDL 1.1 message TODO: Verify message parts: there must be a part element for each message part, "All logical parts of the message must appear here, in the same order as defined in the WSDL 1.1 message description referred to by the type attribute" (jbi specs - 5.5.1.1.4) TODO :CLEAN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
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 WRAPPER_DEFAULT_NAMESPACE_PREFIX
public static final java.lang.String WRAPPER_DEFAULT_NAMESPACE
public static final java.lang.String WRAPPER_MESSAGE
public static final java.lang.String WRAPPER_ATTRIBUTE_VERSION
public static final java.lang.String WRAPPER_ATTRIBUTE_VERSION_VALUE
public static final java.lang.String WRAPPER_ATTRIBUTE_TYPE
public static final java.lang.String WRAPPER_ATTRIBUTE_NAME
public static final java.lang.String WRAPPER_PART
Constructor Detail |
---|
public WrapperUtil()
Method Detail |
---|
public static org.w3c.dom.Element createJBIMessageWrapper(org.w3c.dom.Document normalDoc, javax.xml.namespace.QName type, java.lang.String name)
normalDoc
- The target document of the normalizationtype
- qualified message name defined in the portmap definition for a
given messagename
- optional name attribute defined in the portmap definition for
a given message
public static org.w3c.dom.Element createJBIWrappedPart(org.w3c.dom.Document normalDoc, org.w3c.dom.Node part)
normalDoc
- The target document of the normalizationpart
- the part payload which must be created by normalDoc
public static org.w3c.dom.Element createJBIWrappedPart(org.w3c.dom.Document normalDoc, org.w3c.dom.NodeList part)
normalDoc
- The target document of the normalizationpart
- the part payload which must be created by normalDoc
public static org.w3c.dom.Element importJBIWrappedPart(org.w3c.dom.Document normalDoc, org.w3c.dom.Node part)
normalDoc
- The target document of the normalizationpart
- the part payload which need not be created by normalDoc
public static org.w3c.dom.Element importJBIWrappedPart(org.w3c.dom.Document normalDoc, org.w3c.dom.NodeList part)
normalDoc
- The target document of the normalizationpart
- the part payload which need not be created by normalDoc
public static boolean isMessageWrapped(org.w3c.dom.Document doc)
doc
- the message to determine whether it has a normalized WSDL 1.1
wrapper
public static javax.xml.transform.Source jbiMessageWrapper(java.lang.String msgContent, javax.xml.namespace.QName qName, java.lang.String name) throws WrapperProcessingException
msgContent
- the content messageqName
- the message namespacename
- the message name
WrapperProcessingException
- the wrapper processing exceptionpublic static java.lang.String toXml(org.w3c.dom.Node node, java.lang.String encoding, boolean omitXMLDeclaration) throws WrapperProcessingException
node
- The nodeencoding
- The encodingomitXMLDeclaration
- The omit XML declaration
WrapperProcessingException
- The wrapper processing exceptionpublic static boolean isMessageWrapped(javax.xml.stream.XMLStreamReader docReader) throws WrapperProcessingException
docReader
- the message to determine whether it has a normalized WSDL 1.1
wrapper
WrapperProcessingException
- The wrapper processing exceptionpublic static javax.xml.stream.XMLStreamReader unWrapMessage(javax.xml.stream.XMLStreamReader docReader) throws WrapperProcessingException
docReader
- the message to determine whether it has a
wrapper
WrapperProcessingException
- The warepper process exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |