|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectp2ps.imp.pipe.PipeQueryImp
An implementation of the Pipe Query interface
| Field Summary |
| Fields inherited from interface p2ps.pipe.PipeQuery |
PIPE_QUERY_TYPE, QUERY_PEER_ID_TAG, QUERY_PIPE_ID_TAG, QUERY_PIPE_NAME_TAG |
| Fields inherited from interface p2ps.discovery.Query |
QUERY_TAG, REPLY_URI_TAG |
| Fields inherited from interface p2ps.discovery.Advertisement |
ADVERT_ID_TAG, EXPIRY_DATE, PEER_ID_TAG |
| Constructor Summary | |
PipeQueryImp(Element root)
|
|
PipeQueryImp(java.lang.String advertid,
java.lang.String peerid)
|
|
| Method Summary | |
java.lang.String |
getAdvertID()
|
long |
getExpiryDate()
|
java.lang.String |
getPeerID()
|
java.lang.String |
getQueryPeerID()
|
java.lang.String |
getQueryPipeID()
|
java.lang.String |
getQueryPipeName()
|
java.lang.String |
getQueryType()
|
java.net.URI[] |
getReplyURIs()
|
java.lang.String |
getType()
|
Element |
getXMLAdvert()
Output the advert as an xml document |
Element |
getXMLEnvelope(long expdate)
|
void |
setQueryPeerID(java.lang.String id)
Sets the id of the peer this query is interested in (null if any) |
void |
setQueryPipeID(java.lang.String id)
Sets the id of the pipe this query is interested in (null if any) |
void |
setQueryPipeName(java.lang.String name)
Sets the name of the pipe this query is interested in (null if any) |
void |
setReplyURIs(java.net.URI[] replyuri)
Ssets the optional endpoint uri for the query reply. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PipeQueryImp(java.lang.String advertid,
java.lang.String peerid)
public PipeQueryImp(Element root)
throws java.io.IOException
| Method Detail |
public java.lang.String getType()
getType in interface Advertisementpublic java.lang.String getQueryType()
getQueryType in interface Querypublic java.lang.String getAdvertID()
getAdvertID in interface Advertisementpublic java.lang.String getPeerID()
getPeerID in interface Advertisementpublic long getExpiryDate()
getExpiryDate in interface Advertisementpublic java.lang.String getQueryPeerID()
getQueryPeerID in interface PipeQuerypublic void setQueryPeerID(java.lang.String id)
setQueryPeerID in interface PipeQuerypublic java.lang.String getQueryPipeID()
getQueryPipeID in interface PipeQuerypublic void setQueryPipeID(java.lang.String id)
setQueryPipeID in interface PipeQuerypublic java.lang.String getQueryPipeName()
getQueryPipeName in interface PipeQuerypublic void setQueryPipeName(java.lang.String name)
setQueryPipeName in interface PipeQuerypublic java.net.URI[] getReplyURIs()
getReplyURIs in interface Querypublic void setReplyURIs(java.net.URI[] replyuri)
setReplyURIs in interface Query
public Element getXMLAdvert()
throws java.io.IOException
getXMLAdvert in interface Advertisementjava.io.IOException
public Element getXMLEnvelope(long expdate)
throws java.io.IOException
getXMLEnvelope in interface Advertisementexpdate -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||