public class MexUtil extends Object
| Constructor and Description |
|---|
MexUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.axis2.dataretrieval.OutputForm[] |
allSupportedOutputForms() |
static org.apache.axis2.dataretrieval.OutputForm[] |
determineOutputForm(String dialect,
org.apache.axis2.description.Parameter axisConfigMEXParm,
org.apache.axis2.description.Parameter serviceConfigMEXParm)
Determine output forms for specified dialect based on "metadataexchange" configured in
axis2.xml and services.xml.
|
static Metadata |
fromEPR(org.apache.axis2.addressing.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.OMNamespace |
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(org.apache.axis2.description.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 EnvelopeMexExceptionpublic static org.apache.axiom.soap.SOAPFactory getSOAPFactory(String soapNameSpaceURI) throws MexException
soapNameSpaceURI - soap namespace uriMexExceptionpublic static org.apache.axiom.soap.SOAPFactory getSOAPFactory(int SOAPVersion)
SOAPVersion - SOAP versionpublic static org.apache.axis2.dataretrieval.OutputForm[] allSupportedOutputForms()
public static Metadata fromEPR(org.apache.axis2.addressing.EndpointReference epr) throws MexException
MexExceptionpublic static org.apache.axiom.om.OMNamespace getAddressingNameSpace(org.apache.axiom.om.OMElement toAddress)
throws MexException
toAddress - To Address elementorg.apache.axis2.AxisFaultMexExceptionpublic 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(org.apache.axis2.description.Parameter serviceConfigMEXParm)
serviceConfigMEXParm - metadataexchange configured in services.xmlpublic static org.apache.axis2.dataretrieval.OutputForm[] determineOutputForm(String dialect, org.apache.axis2.description.Parameter axisConfigMEXParm, org.apache.axis2.description.Parameter serviceConfigMEXParm)
dialect - axisConfigMEXParm - "metadataexchange" parameter configured in axis2.xmlserviceConfigMEXParm - "metadataexchange" parameter configured in services.xmlCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.