|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.parlay.fw.TokenAndServiceMap
public class TokenAndServiceMap
This class stores service interfaces and service tokens as a dual look-up. The token:service relationship must be a unique key.
| Constructor Summary | |
|---|---|
TokenAndServiceMap()
Holds references to services and their token identifier. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all mappings from this map. |
java.lang.String |
get(org.csapi.IpService service)
Retrieves the token corresponding to the specified service. |
org.csapi.IpService |
get(java.lang.String serviceToken)
Retrieves the service corresponding to the specified token. |
void |
put(org.csapi.IpService service,
java.lang.String serviceToken)
Stores the specified service token and service interface cross reference. |
void |
put(java.lang.String serviceToken,
org.csapi.IpService service)
Stores the specified service token and service interface cross reference. |
java.lang.String |
remove(org.csapi.IpService service)
Removes the lookup corresponding to the specified service. |
org.csapi.IpService |
remove(java.lang.String serviceToken)
Removes the lookup corresponding to the specified token. |
java.lang.String[] |
tokens()
Method tokens. |
java.lang.String |
toString()
Defines a method used to provide the caller with a string representation of the class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TokenAndServiceMap()
| Method Detail |
|---|
public void put(java.lang.String serviceToken,
org.csapi.IpService service)
serviceToken - the service tokenservice - the service
public void put(org.csapi.IpService service,
java.lang.String serviceToken)
service - the serviceserviceToken - the service tokenpublic org.csapi.IpService get(java.lang.String serviceToken)
serviceToken - the service token
public java.lang.String get(org.csapi.IpService service)
service - the service
public org.csapi.IpService remove(java.lang.String serviceToken)
serviceToken - the service token
public java.lang.String remove(org.csapi.IpService service)
service - the service
public java.lang.String[] tokens()
public void clear()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||