|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectp2ps.imp.group.GroupAdvertisementImp
An implementation of the GroupAdvertisement interface
| Field Summary |
| Fields inherited from interface p2ps.group.GroupAdvertisement |
AUTHORIZATION_TYPE_TAG, GROUP_ADVERTISEMENT_TYPE, GROUP_ID_TAG, GROUP_NAME_TAG, GROUP_SERVICE_URI_TAG, MEMBERSHIP_SERVICE_URI_TAG |
| Fields inherited from interface p2ps.discovery.Advertisement |
ADVERT_ID_TAG, EXPIRY_DATE, PEER_ID_TAG |
| Constructor Summary | |
GroupAdvertisementImp(Element root)
|
|
GroupAdvertisementImp(java.lang.String advertid,
java.lang.String peerid,
java.lang.String groupid)
|
|
| Method Summary | |
java.lang.String |
getAdvertID()
|
java.lang.String |
getAuthorizationType()
|
long |
getExpiryDate()
|
java.lang.String |
getGroupID()
|
java.lang.String |
getGroupName()
|
java.net.URI[] |
getGroupServiceURIs()
|
java.net.URI[] |
getMembershipServiceURIs()
|
java.lang.String |
getPeerID()
|
java.lang.String |
getType()
|
Element |
getXMLAdvert()
Output the advert as an xml document |
Element |
getXMLEnvelope(long expdate)
|
void |
setAuthorizationType(java.lang.String authtype)
Sets the authorization type required for this group (null if no authorization is required) |
void |
setGroupID(java.lang.String groupid)
Set the unique id for the group |
void |
setGroupName(java.lang.String groupname)
Sets the name for the group |
void |
setGroupServiceURIs(java.net.URI[] uri)
Set endpoints where a peer can apply to join a group |
void |
setMembershipServiceURIs(java.net.URI[] uri)
Set endpoints where a peer can apply to join a group |
void |
setPeerID(java.lang.String id)
Sets the peer id for this pipe |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GroupAdvertisementImp(java.lang.String advertid,
java.lang.String peerid,
java.lang.String groupid)
public GroupAdvertisementImp(Element root)
throws java.io.IOException
| Method Detail |
public java.lang.String getType()
getType in interface Advertisementpublic java.lang.String getAdvertID()
getAdvertID in interface Advertisementpublic java.lang.String getPeerID()
getPeerID in interface Advertisementpublic long getExpiryDate()
getExpiryDate in interface Advertisementpublic void setPeerID(java.lang.String id)
public java.lang.String getGroupID()
getGroupID in interface GroupAdvertisementpublic void setGroupID(java.lang.String groupid)
setGroupID in interface GroupAdvertisementpublic java.lang.String getGroupName()
getGroupName in interface GroupAdvertisementpublic void setGroupName(java.lang.String groupname)
setGroupName in interface GroupAdvertisementpublic java.lang.String getAuthorizationType()
getAuthorizationType in interface GroupAdvertisementpublic void setAuthorizationType(java.lang.String authtype)
setAuthorizationType in interface GroupAdvertisementpublic java.net.URI[] getMembershipServiceURIs()
getMembershipServiceURIs in interface GroupAdvertisementpublic void setMembershipServiceURIs(java.net.URI[] uri)
setMembershipServiceURIs in interface GroupAdvertisementpublic java.net.URI[] getGroupServiceURIs()
getGroupServiceURIs in interface GroupAdvertisementpublic void setGroupServiceURIs(java.net.URI[] uri)
setGroupServiceURIs in interface GroupAdvertisement
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 | |||||||||