|
Project JXTA | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.impl.endpoint.cbjx.CbJxMessageInfo
this class defines the xml document used to store message information that is useful for the cbjx endpoint
Constructor Summary | |
CbJxMessageInfo()
creates a new information object |
|
CbJxMessageInfo(InputStream stream,
MimeMediaType type)
creates a new Message information by parsing the given stream |
Method Summary | |
EndpointAddress |
getDestinationAddress()
retrieve the destination address of the message |
Document |
getDocument(MimeMediaType asMimeType)
returns a Document containing the information's document tree |
Certificate |
getPeerCert()
retrieve the peer certificate |
EndpointAddress |
getSourceAddress()
retrieve the original source address of the message |
ID |
getSourceID()
retrieve the source id of the message |
protected boolean |
handleElement(XMLElement elem)
Called to handle elements during parsing. |
protected void |
initialize(Element root)
internal method to process a document into an advertisement. |
void |
setDestinationAddress(EndpointAddress addr)
set the destination address of the message |
void |
setPeerCert(Certificate cert)
set the peer certificate |
void |
setSourceAddress(EndpointAddress addr)
set the source address of the messsage |
void |
setSourceID(ID src)
set the source id of the message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CbJxMessageInfo()
public CbJxMessageInfo(InputStream stream, MimeMediaType type) throws IOException
stream
- the InputStream source of the info data
IOException
- if the info can't be parsed from the streamMethod Detail |
public Certificate getPeerCert()
public void setPeerCert(Certificate cert)
cert
- the peer certificatepublic EndpointAddress getDestinationAddress()
public void setDestinationAddress(EndpointAddress addr)
addr
- the destination addresspublic EndpointAddress getSourceAddress()
public void setSourceAddress(EndpointAddress addr)
addr
- the source addresspublic ID getSourceID()
public void setSourceID(ID src)
src
- the ID of the senderpublic Document getDocument(MimeMediaType asMimeType)
asMimeType
- the desired MIME type for the information rendering
protected boolean handleElement(XMLElement elem)
elem
- Element to parse
protected void initialize(Element root)
root
- where to start.
|
JXTA J2SE | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |