|
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.saaj.support.SaajUtils
public abstract class SaajUtils
Collection of generic utility methods to work with SAAJ. Includes conversion from SAAJ Name
objects to QName
s and vice-versa, and SAAJ version checking.
Name
,
QName
Field Summary | |
---|---|
static int |
SAAJ_11
|
static int |
SAAJ_12
|
static int |
SAAJ_13
|
Constructor Summary | |
---|---|
SaajUtils()
|
Method Summary | |
---|---|
static SOAPEnvelope |
getEnvelope(SOAPElement element)
Returns the SAAJ SOAPEnvelope for the given element. |
static int |
getSaajVersion()
Gets the SAAJ version. |
static int |
getSaajVersion(SOAPElement soapElement)
Gets the SAAJ version for the specified SOAPElement . |
static int |
getSaajVersion(SOAPMessage soapMessage)
Gets the SAAJ version for the specified SOAPMessage . |
static String |
getSaajVersionString()
Returns the SAAJ version as a String. |
static SOAPMessage |
loadMessage(Resource resource,
MessageFactory messageFactory)
Loads a SAAJ SOAPMessage from the given resource with a given message factory. |
static Name |
toName(QName qName,
SOAPElement resolveElement)
Converts a QName to a Name . |
static QName |
toQName(Name name)
Converts a javax.xml.soap.Name to a javax.xml.namespace.QName . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SAAJ_11
public static final int SAAJ_12
public static final int SAAJ_13
Constructor Detail |
---|
public SaajUtils()
Method Detail |
---|
public static int getSaajVersion()
SAAJ_11
,
SAAJ_12
,
SAAJ_13
public static int getSaajVersion(SOAPMessage soapMessage)
SOAPMessage
.
SAAJ_11
,
SAAJ_12
,
SAAJ_13
public static int getSaajVersion(SOAPElement soapElement)
SOAPElement
.
SAAJ_11
,
SAAJ_12
,
SAAJ_13
public static String getSaajVersionString()
SAAJ 1.3
", "SAAJ
1.2
", or "SAAJ 1.1
".
getSaajVersion()
public static Name toName(QName qName, SOAPElement resolveElement) throws SOAPException
QName
to a Name
. A SOAPElement
is required to resolve namespaces.
qName
- the QName
to convertresolveElement
- a SOAPElement
used to resolve namespaces to prefixes
SOAPException
- if conversion is unsuccessful
IllegalArgumentException
- if qName
is not fully qualifiedpublic static QName toQName(Name name)
javax.xml.soap.Name
to a javax.xml.namespace.QName
.
name
- the Name
to convert
QName
public static SOAPMessage loadMessage(Resource resource, MessageFactory messageFactory) throws SOAPException, IOException
SOAPMessage
from the given resource with a given message factory.
resource
- the resource to read frommessageFactory
- SAAJ message factory used to construct the message
SOAPException
- if the message cannot be constructed
IOException
- if the input stream resource cannot be loadedpublic static SOAPEnvelope getEnvelope(SOAPElement element)
SOAPEnvelope
for the given element.
element
- the element to return the envelope from
null
if not found
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |