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
|
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) |
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
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)