|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.protocol.PipeResolverMessage
public abstract class PipeResolverMessage
This abstract class defines the PipeResolver Message.
This message is part of the Pipe Resolver Protocol.
PipeService
,
PipeAdvertisement
,
JXTA Protocols Specification : Standard JXTA ProtocolsNested Class Summary | |
---|---|
static class |
PipeResolverMessage.MessageType
An enumeration class for message types. |
Constructor Summary | |
---|---|
PipeResolverMessage()
Creates a new unintialized pipe resolver message |
Method Summary | |
---|---|
void |
addPeerID(ID id)
Add a peer to the set of peers to which this query is directed. |
abstract Document |
getDocument(MimeMediaType asMimeType)
Write message into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. |
PeerAdvertisement |
getInputPeerAdv()
|
static String |
getMessageType()
returns the Message type. |
PipeResolverMessage.MessageType |
getMsgType()
Returns whether this message is a query or a response. |
Set |
getPeerIDs()
Returns a Set (possibly empty) containing the peer ids
which should respond to this query. |
ID |
getPipeID()
Return the id of the pipe which is the subject of this message. |
String |
getPipeType()
Return the pipe type of the pipe which is the subject of this message. |
boolean |
isFound()
If true then the pipe was found ont he |
void |
setFound(boolean isFound)
|
void |
setInputPeerAdv(PeerAdvertisement peerAdv)
|
void |
setMsgType(PipeResolverMessage.MessageType type)
Sets the message type of this message. |
void |
setPipeID(ID id)
Set the id of pipe which is to be subject of this message. |
void |
setPipeType(String type)
Set the pipe type of the pipe which is the subject of this message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PipeResolverMessage()
Method Detail |
---|
public static String getMessageType()
public abstract Document getDocument(MimeMediaType asMimeType)
asMimeType
- MimeMediaType format representation requested
public PipeResolverMessage.MessageType getMsgType()
public void setMsgType(PipeResolverMessage.MessageType type)
type
- the type this message is to be.public ID getPipeID()
public void setPipeID(ID id)
id
- the pipe id which is the subject of this message.public String getPipeType()
public void setPipeType(String type)
type
- The pipe type of the pipe which is to be the subject of this
message.public Set getPeerIDs()
Set
(possibly empty) containing the peer ids
which should respond to this query.
public void addPeerID(ID id)
id
- the peer id to add.public boolean isFound()
public void setFound(boolean isFound)
public PeerAdvertisement getInputPeerAdv()
public void setInputPeerAdv(PeerAdvertisement peerAdv)
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |