Class SoapEncodingUtil
- java.lang.Object
-
- org.apache.cxf.aegis.type.encoded.SoapEncodingUtil
-
public final class SoapEncodingUtil extends Object
Utilitiy methods for SOAP reading and writing encoded mesages.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
readId
public static String readId(MessageReader reader)
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
public static void writeId(MessageWriter writer, String id)
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
public static String readRef(MessageReader reader)
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
public static void writeRef(MessageWriter writer, String refId)
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
public static String readAttributeValue(MessageReader reader, QName name)
-
writeAttribute
public static void writeAttribute(MessageWriter writer, QName name, String value)
-
-