Project JXTA

Uses of Class
net.jxta.endpoint.MessageElement

Packages that use MessageElement
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.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 digitially signs or digests this element.
 

Methods in net.jxta.endpoint that return MessageElement
 MessageElement MessageElement.getSignature()
          Returns the element containing the digest/digital signature for this element
 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.
 MessageElement Message.getMessageElement(String name)
          Retrieve a element by name from the message without regard to namespace.
 MessageElement Message.getMessageElement(String namespace, String name)
          Retrieve a element by name in the specified namespace from the message.
 

Methods in net.jxta.endpoint with parameters of type MessageElement
 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.
 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.
 boolean Message.removeMessageElement(MessageElement remove)
          Remove an the first occurance of the provided MessageElement from the message.
 boolean Message.removeMessageElement(String namespace, MessageElement remove)
          Remove the first occurance of the provided MessageElement within the specified namespace from the message.
 

Constructors in net.jxta.endpoint with parameters of type MessageElement
TextMessageElement(String name, MimeMediaType type, MessageElement sig)
          Internal constructor for initializaing everything but the data.
TextDocumentMessageElement(String name, TextDocument doc, MessageElement sig)
          Create a new Message Element from the provided Document.
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.
MessageElement(String name, MimeMediaType type, MessageElement sig)
          Internal constructor for initializaing everything but the data.
InputStreamMessageElement(String name, MimeMediaType type, InputStream in, MessageElement sig)
          Create a new MessageElement.
InputStreamMessageElement(String name, MimeMediaType type, InputStream in, long len, MessageElement sig)
          Create a new Message Element.
ByteArrayMessageElement(String name, MimeMediaType type, byte[] b, MessageElement sig)
          Create a new Message Element.
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, int offset, int len, MessageElement sig)
          Create a new Element, but dont add it to the message.
 


JXTA J2SE