public class MexUtil extends Object
Constructor and Description |
---|
MexUtil() |
Modifier and Type | Method and Description |
---|---|
static OutputForm[] |
allSupportedOutputForms() |
static OutputForm[] |
determineOutputForm(String dialect,
Parameter axisConfigMEXParm,
Parameter serviceConfigMEXParm)
Determine output forms for specified dialect based on "metadataexchange" configured in
axis2.xml and services.xml.
|
static Metadata |
fromEPR(EndpointReference epr) |
static Metadata |
fromOM(org.apache.axiom.om.OMElement omElement)
API to map mex:Metadata element to a Metadata object representation.
|
static Metadata |
fromOM(org.apache.axiom.om.OMElement omElement,
String mexNamespaceValue)
API to map mex:Metadata element to a Metadata object representation.
|
static org.apache.axiom.om.impl.OMNamespaceImpl |
getAddressingNameSpace(org.apache.axiom.om.OMElement toAddress)
Answers WS-Addressing namespace
|
static org.apache.axiom.soap.SOAPFactory |
getSOAPFactory(int SOAPVersion)
Answers SOAPFactory corresponding to specified SOAP Version
|
static org.apache.axiom.soap.SOAPFactory |
getSOAPFactory(String soapNameSpaceURI)
Answer SOAPFactory corresponding to specified SOAP namespace URI
|
static int |
getSOAPVersion(org.apache.axiom.soap.SOAPEnvelope envelope)
Answer SOAPVersion for specified envelope
|
static boolean |
isMexDisabled(Parameter serviceConfigMEXParm)
Check if metadata exchange has been disabled for a service.
|
public static int getSOAPVersion(org.apache.axiom.soap.SOAPEnvelope envelope) throws MexException
envelope
- SOAP EnvelopeMexException
public static org.apache.axiom.soap.SOAPFactory getSOAPFactory(String soapNameSpaceURI) throws MexException
soapNameSpaceURI
- soap namespace uriMexException
public static org.apache.axiom.soap.SOAPFactory getSOAPFactory(int SOAPVersion)
SOAPVersion
- SOAP versionpublic static OutputForm[] allSupportedOutputForms()
public static Metadata fromEPR(EndpointReference epr) throws MexException
MexException
public static org.apache.axiom.om.impl.OMNamespaceImpl getAddressingNameSpace(org.apache.axiom.om.OMElement toAddress) throws MexException
toAddress
- To Address elementAxisFault
MexException
public static Metadata fromOM(org.apache.axiom.om.OMElement omElement) throws MexException
Metadata
for APIs to access metadata section.omElement
- an element such as endpoint reference type that contains mex:Metadata or
an mex:Metadata elementMexException
- if invalid mex:Metadata element content is detectedpublic static Metadata fromOM(org.apache.axiom.om.OMElement omElement, String mexNamespaceValue) throws MexException
Metadata
for APIs to access metadata section.omElement
- an element such as endpoint reference type that contains mex:Metadata or
an mex:Metadata elementmexNamespaceValue
- the namespace of the WS-MEX spec to comply with.MexException
- if invalid mex:Metadata element content is detectedpublic static boolean isMexDisabled(Parameter serviceConfigMEXParm)
serviceConfigMEXParm
- metadataexchange configured in services.xmlpublic static OutputForm[] determineOutputForm(String dialect, Parameter axisConfigMEXParm, Parameter serviceConfigMEXParm)
dialect
- axisConfigMEXParm
- "metadataexchange" parameter configured in axis2.xmlserviceConfigMEXParm
- "metadataexchange" parameter configured in services.xmlCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.