|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.type.server.HandlerManager
This class holds the handler manager for a particular type of incoming amber systems. The systems identify themselves using a single number.
Core,
ConnectionHandler| Field Summary | |
protected ConnectionHandler |
handler
The class which handles this type of incoming remote system. |
protected int |
id
The number used by the remote system to identify the type of connection. |
| Constructor Summary | |
HandlerManager()
Default Constructor. |
|
HandlerManager(int id,
ConnectionHandler handler)
Initialising Constructor. |
|
| Method Summary | |
ConnectionHandler |
getHandler()
Gets the data in the following variable: The class which handles this type of incoming remote system. |
int |
getId()
Gets the data in the following variable: The number used by the remote system to identify the type of connection. |
void |
setHandler(ConnectionHandler data)
Sets the data in the following variable: The class which handles this type of incoming remote system. |
void |
setId(int data)
Sets the data in the following variable: The number used by the remote system to identify the type of connection. |
java.lang.String |
toString()
This function returns the String form of the data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int id
protected ConnectionHandler handler
| Constructor Detail |
public HandlerManager()
public HandlerManager(int id,
ConnectionHandler handler)
id - The number used by the remote system to identify the type of connection.handler - The class which handles this type of incoming remote system.| Method Detail |
public int getId()
public ConnectionHandler getHandler()
public void setId(int data)
data - int containing the data to set the variable to.public void setHandler(ConnectionHandler data)
data - ConnectionHandler containing the data to set the variable to.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||