p2ps.endpoint
Interface EndpointQuery

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

public interface EndpointQuery
extends Query

An interface implemented by queries interested in discovering services.

 <?xml version="1.0"?>
 <EndpointQuery;>
  <advertId> ID of advertisement </advertId>
  <peerID> ID of querying peer </peerId>
  <queryPipeID> The pipe the query is interested in </peerId>
  <queryPipeID> The protocol the query is interested in </peerId>
  <replyAddress>
   <endpointAddress>
    <address> The endpoint address </address>
    <transportProtocol> The endpoint protocol </transportProtocol>
   </endpointAddress>
  </replyAddress;>
 </EndpointQuery;>
 

Version:
$Revision: 295 $
Author:
Ian Wang

Field Summary
static java.lang.String ENDPOINT_QUERY_TYPE
           
static java.lang.String QUERY_PIPE_ID_TAG
           
static java.lang.String QUERY_SCHEME_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
 
Method Summary
 java.lang.String getQueryPipeID()
           
 java.lang.String[] getQuerySchemes()
           
 void setQueryPipeID(java.lang.String id)
          Sets the id of the pipe this query is interested in
 void setQuerySchemes(java.lang.String[] schemes)
          Sets the id of the endpoint scheme 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

ENDPOINT_QUERY_TYPE

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

QUERY_PIPE_ID_TAG

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

QUERY_SCHEME_TAG

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

setQueryPipeID

public void setQueryPipeID(java.lang.String id)
Sets the id of the pipe this query is interested in


getQueryPipeID

public java.lang.String getQueryPipeID()
Returns:
the id of the pipe this query is interested in

setQuerySchemes

public void setQuerySchemes(java.lang.String[] schemes)
Sets the id of the endpoint scheme this query is interested in (null if any)


getQuerySchemes

public java.lang.String[] getQuerySchemes()
Returns:
the id of the transport protocol this query is interested in (null if any)