public class MexUtil
extends java.lang.Object
| Constructor and Description |
|---|
MexUtil() |
| Modifier and Type | Method and Description |
|---|---|
static OutputForm[] |
allSupportedOutputForms() |
static OutputForm[] |
determineOutputForm(java.lang.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,
java.lang.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(java.lang.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 EnvelopeMexExceptionpublic static org.apache.axiom.soap.SOAPFactory getSOAPFactory(java.lang.String soapNameSpaceURI)
throws MexException
soapNameSpaceURI - soap namespace uriMexExceptionpublic static org.apache.axiom.soap.SOAPFactory getSOAPFactory(int SOAPVersion)
SOAPVersion - SOAP versionpublic static OutputForm[] allSupportedOutputForms()
public static Metadata fromEPR(EndpointReference epr) throws MexException
MexExceptionpublic static org.apache.axiom.om.impl.OMNamespaceImpl getAddressingNameSpace(org.apache.axiom.om.OMElement toAddress)
throws MexException
toAddress - To Address elementAxisFaultMexExceptionpublic 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, java.lang.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(java.lang.String dialect, Parameter axisConfigMEXParm, Parameter serviceConfigMEXParm)
dialect - axisConfigMEXParm - "metadataexchange" parameter configured in axis2.xmlserviceConfigMEXParm - "metadataexchange" parameter configured in services.xmlCopyright © 2004-2022 The Apache Software Foundation. All Rights Reserved.