|
|||||||||
| Home >> All >> org >> mitre >> [ cvw overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mitre.cvw
Class CVWServerList

java.lang.Objectjava.util.Dictionary
java.util.Hashtable
org.mitre.cvw.CVWServerList
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class CVWServerList
- extends java.util.Hashtable
This class provides a single entry point to retrieve CVW federated servers
- Version:
- 1
| Nested Class Summary |
| Nested classes inherited from class java.util.Hashtable |
|
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Field Summary | |
static int |
ALL_USER_TABLE
|
private static CVWServerList |
currentList
|
private static CVWServer |
localServer
|
static int |
ONLINE_USER_TABLE
|
private ServerComboBox[] |
serverBox
|
| Fields inherited from class java.util.Hashtable |
|
| Constructor Summary | |
protected |
CVWServerList()
Constructor |
| Method Summary | |
void |
addLocalServer(java.lang.String id)
Add a server as the client's local server |
void |
addServer(CVWServer server)
Add a server to the list of servers, if it's not already there |
void |
addServer(java.lang.String id)
Add a server to the list of servers, if it's not already there |
javax.swing.JComboBox |
buildServerBox(int boxWindow)
Return a combo box of server names that can be used in a gui panel |
private static void |
debug(java.lang.String message)
prints debugging lines if debugging is on |
static CVWServerList |
getCVWServerList()
Provides access point to retrieve the server list |
static CVWServer |
getLocalServer()
Return the server local to this user |
java.lang.String |
getSelectedServer(int boxWindow)
Get the server selected in the combo box |
CVWServer |
getServer(java.lang.String id)
Return the CVWServer with the given name, or create one if it doesn't exist |
boolean |
hasServer(CVWServer server)
Look for a CVWServer (search is based on server id, not java object) |
boolean |
hasServer(java.lang.String id)
Look for a CVWServer given the id |
boolean |
isLocalServer(java.lang.String name)
Check to see if name provided is the local server |
private static void |
main(java.lang.String[] args)
|
void |
parseServerList(java.lang.String idList)
Parse and incorporate a list of servers |
void |
removeServer(java.lang.String name)
Remove a server from the current list |
static void |
setLocalServer(CVWServer server)
Set the local Server in the list |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
localServer
private static CVWServer localServer
serverBox
private ServerComboBox[] serverBox
ALL_USER_TABLE
public static final int ALL_USER_TABLE
- See Also:
- Constant Field Values
ONLINE_USER_TABLE
public static final int ONLINE_USER_TABLE
- See Also:
- Constant Field Values
currentList
private static CVWServerList currentList
| Constructor Detail |
CVWServerList
protected CVWServerList()
- Constructor
| Method Detail |
getCVWServerList
public static CVWServerList getCVWServerList()
- Provides access point to retrieve the server list
addServer
public void addServer(CVWServer server)
- Add a server to the list of servers, if it's not already there
addServer
public void addServer(java.lang.String id)
- Add a server to the list of servers, if it's not already there
addLocalServer
public void addLocalServer(java.lang.String id)
- Add a server as the client's local server
removeServer
public void removeServer(java.lang.String name)
- Remove a server from the current list
hasServer
public boolean hasServer(java.lang.String id)
- Look for a CVWServer given the id
hasServer
public boolean hasServer(CVWServer server)
- Look for a CVWServer (search is based on server id, not java object)
getServer
public CVWServer getServer(java.lang.String id)
- Return the CVWServer with the given name, or create one if it doesn't exist
getLocalServer
public static CVWServer getLocalServer()
- Return the server local to this user
parseServerList
public void parseServerList(java.lang.String idList)
- Parse and incorporate a list of servers
setLocalServer
public static void setLocalServer(CVWServer server)
- Set the local Server in the list
isLocalServer
public boolean isLocalServer(java.lang.String name)
- Check to see if name provided is the local server
buildServerBox
public javax.swing.JComboBox buildServerBox(int boxWindow)
- Return a combo box of server names that can be used in a gui panel
getSelectedServer
public java.lang.String getSelectedServer(int boxWindow)
- Get the server selected in the combo box
debug
private static void debug(java.lang.String message)
- prints debugging lines if debugging is on
main
private static void main(java.lang.String[] args)
|
|||||||||
| Home >> All >> org >> mitre >> [ cvw overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC