|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.soap.axiom.support.AxiomUtils
public abstract class AxiomUtils
Collection of generic utility methods to work with Axiom. Includes conversion from OMNamespaces to
QNames.
OMNamespace,
QName| Constructor Summary | |
|---|---|
AxiomUtils()
|
|
| Method Summary | |
|---|---|
static void |
removeContents(OMContainer container)
Removes the contents (i.e. children) of the container. |
static Document |
toDocument(SOAPEnvelope envelope)
Converts a given AXIOM SOAPEnvelope to a Document. |
static SOAPEnvelope |
toEnvelope(Document document)
Converts a given Document to an AXIOM SOAPEnvelope. |
static String |
toLanguage(Locale locale)
Converts the given locale to a xml:lang string, as used in Axiom Faults. |
static Locale |
toLocale(String language)
Converts the given locale to a xml:lang string, as used in Axiom Faults. |
static OMNamespace |
toNamespace(QName qName,
OMElement resolveElement)
Converts a javax.xml.namespace.QName to a org.apache.axiom.om.OMNamespace. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AxiomUtils()
| Method Detail |
|---|
public static OMNamespace toNamespace(QName qName,
OMElement resolveElement)
throws OMException
javax.xml.namespace.QName to a org.apache.axiom.om.OMNamespace. A
OMElement is used to resolve the namespace, or to declare a new one.
qName - the QName to convertresolveElement - the element used to resolve the Q
OMException - if conversion is unsuccessful
IllegalArgumentException - if qName is not fully qualifiedpublic static String toLanguage(Locale locale)
xml:lang string, as used in Axiom Faults.
locale - the locale
public static Locale toLocale(String language)
xml:lang string, as used in Axiom Faults.
language - the language string
public static void removeContents(OMContainer container)
public static Document toDocument(SOAPEnvelope envelope)
SOAPEnvelope to a Document.
envelope - the SOAP envelope to be converted
IllegalArgumentException - in case of errorsorg.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(SOAPEnvelope, boolean)public static SOAPEnvelope toEnvelope(Document document)
Document to an AXIOM SOAPEnvelope.
document - the document to be converted
IllegalArgumentException - in case of errorsorg.apache.rampart.util.Axis2Util.getSOAPEnvelopeFromDOMDocument(Document, boolean)
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||