|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjimm.twice.ice.Party
A party is either a syndicator or a subscriber.
Field Summary | |
protected java.lang.String |
locationURL
|
protected java.lang.String |
name
|
protected int |
role
|
static int |
ROLE_SUBSCRIBER
|
static java.lang.String |
ROLE_SUBSCRIBER_STRING
|
static int |
ROLE_SYNDICATOR
|
static java.lang.String |
ROLE_SYNDICATOR_STRING
|
protected java.lang.String |
uuid
|
Constructor Summary | |
Party(java.lang.String id,
java.lang.String name,
int role,
java.lang.String locationURL)
Constructor. |
Method Summary | |
java.lang.String |
getLocationURL()
Returns the URL of the party's HTTP "listener", as a string. |
java.lang.String |
getName()
|
int |
getRole()
Returns the role, either ROLE_SYNDICATOR or
ROLE_SUBSCRIBER . |
java.lang.String |
getRoleString()
Returns the role as a string, either ROLE_SYNDICATOR_STRING
or ROLE_SUBSCRIBER_STRING . |
java.lang.String |
getUuid()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ROLE_SYNDICATOR
public static final int ROLE_SUBSCRIBER
public static final java.lang.String ROLE_SYNDICATOR_STRING
public static final java.lang.String ROLE_SUBSCRIBER_STRING
protected java.lang.String uuid
protected java.lang.String name
protected int role
protected java.lang.String locationURL
Constructor Detail |
public Party(java.lang.String id, java.lang.String name, int role, java.lang.String locationURL)
id
- Universally Unique Identifier (UUID)name
- a stringrole
- one of ROLE_SYNDICATOR
or
ROLE_SUBSCRIBER
locationURL
- location URL (the "listener" URL, not the human-readable
website URL)Method Detail |
public java.lang.String getUuid()
public java.lang.String getName()
public int getRole()
ROLE_SYNDICATOR
or
ROLE_SUBSCRIBER
.
Party
role constantParty
public java.lang.String getRoleString()
ROLE_SYNDICATOR_STRING
or ROLE_SUBSCRIBER_STRING
.
Party
role stringParty
public java.lang.String getLocationURL()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |