Apache CXF API

org.apache.cxf.aegis.type.encoded
Class SoapEncodingUtil

java.lang.Object
  extended by org.apache.cxf.aegis.type.encoded.SoapEncodingUtil

public final class SoapEncodingUtil
extends Object

Utilitiy methods for SOAP reading and writing encoded mesages.


Method Summary
static String readAttributeValue(MessageReader reader, QName name)
           
static String readId(MessageReader reader)
          Reads the SOAP 1.2 or SOAP 1.1 id attribute.
static String readRef(MessageReader reader)
          Reads the SOAP 1.2 or SOAP 1.1 reference attribute.
static void writeAttribute(MessageWriter writer, QName name, String value)
           
static void writeId(MessageWriter writer, String id)
          Writes a SOAP 1.1 id attribute.
static void writeRef(MessageWriter writer, String refId)
          Writes a SOAP 1.1 ref attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 null
id - 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 null
refId - 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)

Apache CXF API

Apache CXF