public class WrapperUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
WRAPPER_ATTRIBUTE_NAME |
static String |
WRAPPER_ATTRIBUTE_TYPE |
static String |
WRAPPER_ATTRIBUTE_VERSION |
static String |
WRAPPER_ATTRIBUTE_VERSION_VALUE |
static String |
WRAPPER_DEFAULT_NAMESPACE |
static String |
WRAPPER_DEFAULT_NAMESPACE_PREFIX
Constants to build wsdl 1.1 wrapper, e.g. along the lines of
|
static String |
WRAPPER_MESSAGE |
static String |
WRAPPER_PART |
| Constructor and Description |
|---|
WrapperUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Element |
createJBIMessageWrapper(Document normalDoc,
QName type,
String name)
Creates and returns a JBI message wrapper element.
|
static Element |
createJBIWrappedPart(Document normalDoc,
Node part)
Creates and returns a JBI part wrapper element.
|
static Element |
createJBIWrappedPart(Document normalDoc,
NodeList part)
Creates and returns a JBI part wrapper element.
|
static Element |
getPartElement(Document wrappedDoc)
Returns only the first Element inside the part wrapper
Legally, the jbi:part may contain multiple Elements, or text - but
in many cases the WSDL will limit this to one element.
|
static Element |
importJBIWrappedPart(Document normalDoc,
Node part)
Creates and returns a JBI part wrapper element.
|
static Element |
importJBIWrappedPart(Document normalDoc,
NodeList part)
Creates and returns a JBI part wrapper element.
|
public static final String WRAPPER_DEFAULT_NAMESPACE_PREFIX
public static final String WRAPPER_DEFAULT_NAMESPACE
public static final String WRAPPER_MESSAGE
public static final String WRAPPER_ATTRIBUTE_VERSION
public static final String WRAPPER_ATTRIBUTE_VERSION_VALUE
public static final String WRAPPER_ATTRIBUTE_TYPE
public static final String WRAPPER_ATTRIBUTE_NAME
public static final String WRAPPER_PART
public static Element createJBIMessageWrapper(Document normalDoc, QName type, 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 messagepublic static Element createJBIWrappedPart(Document normalDoc, NodeList part)
normalDoc - The target document of the normalizationpartName - the name of the partpart - the part payload which must be created by normalDocpublic static Element createJBIWrappedPart(Document normalDoc, Node part)
normalDoc - The target document of the normalizationpartName - the name of the partpart - the part payload which must be created by normalDocpublic static Element importJBIWrappedPart(Document normalDoc, NodeList part)
normalDoc - The target document of the normalizationpartName - the name of the partpart - the part payload which need not be created by normalDocpublic static Element importJBIWrappedPart(Document normalDoc, Node part)
normalDoc - The target document of the normalizationpartName - the name of the partpart - the part payload which need not be created by normalDocpublic static Element getPartElement(Document wrappedDoc) throws WrapperProcessingException
wrappedDoc - the wrapped documentWrapperProcessingException - if the part could not be returnedCopyright © 2011-2016 OpenESB Community. All Rights Reserved.