JXTA

Uses of Class
net.jxta.endpoint.MessageElement

Packages that use MessageElement
net.jxta.document JXTA Documents are containers for both structured and unstructured data. 
net.jxta.endpoint Provides interfaces and classes used for the addressing, filtering, sending, and receiving of messages within JXTA. 
 

Uses of MessageElement in net.jxta.document
 

Methods in net.jxta.document with parameters of type MessageElement
static StructuredDocument StructuredDocumentFactory.newStructuredDocument(MessageElement element)
          Constructs an instance of StructuredDocument based upon the content of the provided message element.
 

Uses of MessageElement in net.jxta.endpoint
 

Subclasses of MessageElement in net.jxta.endpoint
 class ByteArrayMessageElement
          A Message Element using byte arrays for the element data.
 class InputStreamMessageElement
          A Message Element using InputStream as the source for the element data.
 class StringMessageElement
          A Message Element using character strings for the element data.
 class TextDocumentMessageElement
          A Message Element using JXTA TextDocument for the element data.
 class TextMessageElement
          An extension of MessageElement for managing elements that are composed of character text.
 

Fields in net.jxta.endpoint declared as MessageElement
protected  MessageElement MessageElement.sig
          The optional element which digitally signs or digests this element.
 

Fields in net.jxta.endpoint with type parameters of type MessageElement
protected  Map<String,List<MessageElement>> Message.namespaces
          the namespaces in this message and the elements in each.
 

Methods in net.jxta.endpoint that return MessageElement
 MessageElement MessageElement.clone()
          Deprecated. Since Message Elements are immutable this method does nothing useful.
 MessageElement Message.getMessageElement(String name)
          Retrieve a message element by name from the message without regard to namespace.
 MessageElement Message.getMessageElement(String namespace, String name)
          Retrieve a message element by name in the specified namespace from the message.
 MessageElement Message.ElementIterator.getSignature()
          Return the signature element of the current element.
 MessageElement MessageElement.getSignature()
          Returns the element containing the digest/digital signature for this element
 MessageElement Message.ElementIterator.next()
          
 MessageElement Message.ElementIterator.previous()
          
 MessageElement Message.replaceMessageElement(MessageElement replacement)
          Replace a MessageElement in the message.
 MessageElement Message.replaceMessageElement(String namespace, MessageElement replacement)
          Replace a MessageElement in the message using the specified namespace.
 

Methods in net.jxta.endpoint with parameters of type MessageElement
 void Message.ElementIterator.add(MessageElement obj)
          

Not provided because the namespace cannot be specified.

 void Message.addMessageElement(MessageElement add)
          Add a MessageElement into the message.
 void Message.addMessageElement(String namespace, MessageElement add)
          Add a MessageElement into the message using the specified namespace.
 void Message.addMessageElement(String namespace, MessageElement add, MessageElement signature)
          Add a MessageElement into the Message using the specified namespace.
 boolean Message.removeMessageElement(MessageElement remove)
          Remove an the first occurrence of the provided MessageElement from the message.
 boolean Message.removeMessageElement(String namespace, MessageElement remove)
          Remove the first occurrence of the provided MessageElement within the specified namespace from the message.
 MessageElement Message.replaceMessageElement(MessageElement replacement)
          Replace a MessageElement in the message.
 MessageElement Message.replaceMessageElement(String namespace, MessageElement replacement)
          Replace a MessageElement in the message using the specified namespace.
 void Message.ElementIterator.set(MessageElement obj)
          

Replacement MessageElement will be in the same name space as the replaced element.

 

Constructors in net.jxta.endpoint with parameters of type MessageElement
ByteArrayMessageElement(String name, MimeMediaType type, byte[] b, int offset, int len, MessageElement sig)
          Create a new Element, but dont add it to the message.
ByteArrayMessageElement(String name, MimeMediaType type, byte[] b, int offset, MessageElement sig)
          Create a new MessageElement, The contents of the provided byte array are not copied during construction.
ByteArrayMessageElement(String name, MimeMediaType type, byte[] b, MessageElement sig)
          Create a new Message Element.
InputStreamMessageElement(String name, MimeMediaType type, InputStream in, long len, MessageElement sig)
          Create a new Message Element.
InputStreamMessageElement(String name, MimeMediaType type, InputStream in, MessageElement sig)
          Create a new MessageElement.
MessageElement(String name, MimeMediaType type, MessageElement sig)
          Internal constructor for initializing everything but the data.
StringMessageElement(String name, String value, MessageElement sig)
          Create a new Message Element from the provided String.
StringMessageElement(String name, String value, String encoding, MessageElement sig)
          Create a new Message Element from the provided String.
TextDocumentMessageElement(String name, TextDocument doc, MessageElement sig)
          Create a new Message Element from the provided Document.
TextMessageElement(String name, MimeMediaType type, MessageElement sig)
          Internal constructor for initializaing everything but the data.
 


JXSE