Class SoapEncodingUtil
java.lang.Object
org.apache.cxf.aegis.type.encoded.SoapEncodingUtil
Utilitiy methods for SOAP reading and writing encoded mesages.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringreadAttributeValue(MessageReader reader, QName name) static StringreadId(MessageReader reader) Reads the SOAP 1.2 or SOAP 1.1 id attribute.static StringreadRef(MessageReader reader) Reads the SOAP 1.2 or SOAP 1.1 reference attribute.static voidwriteAttribute(MessageWriter writer, QName name, String value) static voidwriteId(MessageWriter writer, String id) Writes a SOAP 1.1 id attribute.static voidwriteRef(MessageWriter writer, String refId) Writes a SOAP 1.1 ref attribute.
-
Method Details
-
readId
Reads the SOAP 1.2 or SOAP 1.1 id attribute.- Parameters:
reader- the stream to read; must not be null- Returns:
- the id or null of neither attribute was present
-
writeId
Writes a SOAP 1.1 id attribute.- Parameters:
writer- the stream to which the id should be written; must not be nullid- the id to write; must not be null
-
readRef
Reads the SOAP 1.2 or SOAP 1.1 reference attribute.- Parameters:
reader- the stream to read; must not be null- Returns:
- the reference id or null of neither attribute was present
-
writeRef
Writes a SOAP 1.1 ref attribute.- Parameters:
writer- the stream to which the id should be written; must not be nullrefId- the reference id to write; must not be null
-
readAttributeValue
-
writeAttribute
-