p2ps.service
Interface ServiceQuery

All Superinterfaces:
Advertisement, Query, java.io.Serializable
All Known Implementing Classes:
ServiceQueryImp

public interface ServiceQuery
extends Query

An interface implemented by queries interested in discovering services.

Version:
$Revision: 295 $
Author:
Ian Wang

Field Summary
static java.lang.String QUERY_PEER_ID_TAG
           
static java.lang.String QUERY_SERVICE_NAME_TAG
           
static java.lang.String SERVICE_QUERY_TYPE
           
 
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
 
Method Summary
 java.lang.String getQueryPeerID()
           
 java.lang.String getQueryServiceName()
           
 void setQueryPeerID(java.lang.String id)
          Sets the id of the peer this query is interested in (null if any)
 void setQueryServiceName(java.lang.String name)
          Sets the name of the service this query is interested in (null if any)
 
Methods inherited from interface p2ps.discovery.Query
getQueryType, getReplyURIs, setReplyURIs
 
Methods inherited from interface p2ps.discovery.Advertisement
getAdvertID, getExpiryDate, getPeerID, getType, getXMLAdvert, getXMLEnvelope
 

Field Detail

SERVICE_QUERY_TYPE

public static final java.lang.String SERVICE_QUERY_TYPE
See Also:
Constant Field Values

QUERY_PEER_ID_TAG

public static final java.lang.String QUERY_PEER_ID_TAG
See Also:
Constant Field Values

QUERY_SERVICE_NAME_TAG

public static final java.lang.String QUERY_SERVICE_NAME_TAG
See Also:
Constant Field Values
Method Detail

setQueryPeerID

public void setQueryPeerID(java.lang.String id)
Sets the id of the peer this query is interested in (null if any)


getQueryPeerID

public java.lang.String getQueryPeerID()
Returns:
the id of the peer this query is interested in (null if any)

setQueryServiceName

public void setQueryServiceName(java.lang.String name)
Sets the name of the service this query is interested in (null if any)


getQueryServiceName

public java.lang.String getQueryServiceName()
Returns:
the name of the service this query is interested in (null if any)