org.idoox.xmlrpc
Interface MessagePart


Deprecated. See SOAPMessage and SOAPElement.

public interface MessagePart

this interface specifies a part of XML message (i.e. header or body element)

Since:
4.0
Component:
Core

Method Summary
 TokenWriter getContentTokenWriter()
          Deprecated. Returns the token writer for the message part.
 java.util.Map getPartProperties()
          Deprecated. Returns unmodifiable map containing all defined properties for this message part instance.
 java.lang.String getPartProperty(QName property)
          Deprecated. returns the property of the contained part (name, namespace, mustUnderstand, encodingURI, ...)
 Tokenizer getTokenizer()
          Deprecated. returns the tokenizer associated with this message part.
 

Method Detail

getPartProperty

public java.lang.String getPartProperty(QName property)
Deprecated. 
returns the property of the contained part (name, namespace, mustUnderstand, encodingURI, ...)

Parameters:
property - the name of the property
Returns:
the value of the property

getPartProperties

public java.util.Map getPartProperties()
Deprecated. 
Returns unmodifiable map containing all defined properties for this message part instance.

Returns:
map of part properties. See org.idoox.xmlrpc.Constants for a list of keys

getTokenizer

public Tokenizer getTokenizer()
Deprecated. 
returns the tokenizer associated with this message part. Please note that the tokenizer is stream-based, i.e. everything that is read out of it is lost. So, for example, the following call is generally invalid : Tokenizer t = msg.getBody().getTokenizer(); t.next(); // moves in the tokenizer. The first element is lost ! msg.setBody(t); // this will fail !

Returns:
tokenizer of the part

getContentTokenWriter

public TokenWriter getContentTokenWriter()
                                  throws java.io.IOException
Deprecated. 
Returns the token writer for the message part. The token writer provides higher level API for writing a namespaced XML data.

Returns:
the token writer which is to be used to output this part
Throws:
java.io.IOException - if there was an IO error during part's writer initialization