Class PayloadRootUtils
java.lang.Object
org.springframework.ws.server.endpoint.support.PayloadRootUtils
Helper class for determining the root qualified name of a Web Service payload.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Method Summary
Modifier and TypeMethodDescriptionstatic QName
getPayloadRootQName
(Source source, TransformerFactory transformerFactory) Returns the root qualified name of the given source, transforming it if necessary.static QName
getPayloadRootQName
(Source source, TransformerHelper transformerHelper)
-
Method Details
-
getPayloadRootQName
public static QName getPayloadRootQName(Source source, TransformerFactory transformerFactory) throws TransformerException Returns the root qualified name of the given source, transforming it if necessary.- Parameters:
source
- the source to get the root element fromtransformerFactory
- a transformer factory, necessary if the given source is not aDOMSource
- Returns:
- the root element, or
null
ifsource
isnull
- Throws:
TransformerException
-
getPayloadRootQName
public static QName getPayloadRootQName(Source source, TransformerHelper transformerHelper) throws TransformerException - Throws:
TransformerException
-