JXTA

net.jxta.impl.pipe
Class WireHeader

java.lang.Object
  extended by net.jxta.impl.pipe.WireHeader

public class WireHeader
extends Object

This class implements a JXTA-WIRE header.


Constructor Summary
WireHeader()
           
WireHeader(Element root)
           
 
Method Summary
 Document getDocument(MimeMediaType encodeAs)
          Returns the docment for this header
 String getMsgId()
           
 ID getPipeID()
           
 ID getSrcPeer()
           
 int getTTL()
           
protected  boolean handleElement(XMLElement elem)
          Called to handle elements during parsing.
protected  void initialize(Element root)
          internal method to process a document into a header.
 void setMsgId(String id)
           
 void setPipeID(ID id)
           
 void setSrcPeer(ID p)
           
 void setTTL(int t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WireHeader

public WireHeader()

WireHeader

public WireHeader(Element root)
Method Detail

setSrcPeer

public void setSrcPeer(ID p)

getSrcPeer

public ID getSrcPeer()

setTTL

public void setTTL(int t)

getTTL

public int getTTL()

getMsgId

public String getMsgId()

setMsgId

public void setMsgId(String id)

getPipeID

public ID getPipeID()

setPipeID

public void setPipeID(ID id)

handleElement

protected boolean handleElement(XMLElement elem)
Called to handle elements during parsing.

Parameters:
elem - Element to parse
Returns:
true if element was handled, otherwise false.

initialize

protected void initialize(Element root)
internal method to process a document into a header.

Parameters:
root - where to start.

getDocument

public Document getDocument(MimeMediaType encodeAs)
Returns the docment for this header

Parameters:
encodeAs - mime type encoding
Returns:
the docment for this header

JXSE