p2ps.endpoint
Interface EndpointResolverAdvertisement

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

public interface EndpointResolverAdvertisement
extends Advertisement

An advert for a pipe resolver. A pipe resolver provides an endpoint that pipe endpoint queries can be sent to be resolved into endpoint addresses.

 <?xml version="1.0"?>
 <EndpointResolverAdvertisement;>
  <advertId> ID of advertisement </advertId>
  <peerID> ID of resolver peer </peerId>
  <resolverURI>URI for the resolver</resolverURI>
  <resolverURI>Optional additional resolver URI</resolverURI>
  <resolverEndpointScheme>The scheme of endpoints returned by this resolver</resolverForPeerID>
  <resolverEndpointScheme>Optional additional schemes</resolverForPeerID>
  <resolverForPeerID>ID a peers that the reolver resolvers endpoints for</resolverForPeerID>
  <resolverForPeerID>Optional additional peer ids</resolverForPeerID>
 </EndpointResolverAdvertisement>
 

Version:
$Revision: 295 $
Author:
Ian Wang

Field Summary
static java.lang.String ENDPOINT_RESOLVER_ADVERTISEMENT_TYPE
           
static java.lang.String RESOLVER_ENDPOINT_SCHEME_TAG
           
static java.lang.String RESOLVER_FOR_PEER_ID_TAG
           
static java.lang.String RESOLVER_URI_TAG
           
 
Fields inherited from interface p2ps.discovery.Advertisement
ADVERT_ID_TAG, EXPIRY_DATE, PEER_ID_TAG
 
Method Summary
 java.lang.String[] getEndpointSchemes()
           
 java.net.URI[] getEndpointURIs()
           
 java.lang.String[] getResolverForPeerIDs()
           
 void setEndpointSchemes(java.lang.String[] types)
          Sets the endpoint schemes returned by the resolver
 void setEndpointURIs(java.net.URI[] uri)
          Sets the endpoint uri for this resolver
 void setResolverForPeerIDs(java.lang.String[] peerids)
          Sets the transport protocol for this advert
 
Methods inherited from interface p2ps.discovery.Advertisement
getAdvertID, getExpiryDate, getPeerID, getType, getXMLAdvert, getXMLEnvelope
 

Field Detail

ENDPOINT_RESOLVER_ADVERTISEMENT_TYPE

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

RESOLVER_URI_TAG

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

RESOLVER_ENDPOINT_SCHEME_TAG

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

RESOLVER_FOR_PEER_ID_TAG

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

getEndpointURIs

public java.net.URI[] getEndpointURIs()
Returns:
the endpoint uri of the resolver

setEndpointURIs

public void setEndpointURIs(java.net.URI[] uri)
Sets the endpoint uri for this resolver


getEndpointSchemes

public java.lang.String[] getEndpointSchemes()
Returns:
the endpoint schemes returned by the resolver

setEndpointSchemes

public void setEndpointSchemes(java.lang.String[] types)
Sets the endpoint schemes returned by the resolver


getResolverForPeerIDs

public java.lang.String[] getResolverForPeerIDs()
Returns:
the peer ids of the peers handled by the resolver

setResolverForPeerIDs

public void setResolverForPeerIDs(java.lang.String[] peerids)
Sets the transport protocol for this advert