|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.protocol.PeerInfoResponseMessage
public abstract class PeerInfoResponseMessage
This abstract class define the PeerInfoService advertisement.
Constructor Summary | |
---|---|
PeerInfoResponseMessage()
|
Method Summary | |
---|---|
abstract Document |
getDocument(MimeMediaType encodeAs)
|
static String |
getMessageType()
returns the Message type |
Element |
getResponse()
returns the response |
PeerID |
getSourcePid()
returns the sender's pid |
PeerID |
getTargetPid()
returns the target pid |
long |
getTimestamp()
returns the time when this peer was last polled |
long |
getUptime()
returns the number of milliseconds since this peer was started |
void |
setResponse(Element response)
sets the request |
void |
setSourcePid(PeerID pid)
sets the sender's pid |
void |
setTargetPid(PeerID pid)
sets the target's pid |
void |
setTimestamp(long milliseconds)
sets the time when this peer was last polled |
void |
setUptime(long milliseconds)
sets the number of milliseconds since this peer was started |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PeerInfoResponseMessage()
Method Detail |
---|
public static String getMessageType()
public PeerID getSourcePid()
public void setSourcePid(PeerID pid)
pid
- a string representing a peer's idpublic PeerID getTargetPid()
public void setTargetPid(PeerID pid)
pid
- a string representing a peer's idpublic Element getResponse()
public void setResponse(Element response)
response
- a structured document representing a peerinfo requestpublic long getUptime()
public void setUptime(long milliseconds)
milliseconds
- the number of milliseconds since this peer was startedpublic long getTimestamp()
public void setTimestamp(long milliseconds)
milliseconds
- time in milliseconds when this peer was last polled
in milliseconds since "the epoch", namely January 1, 1970, 00:00:00
GMT.public abstract Document getDocument(MimeMediaType encodeAs)
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |