|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.io.terminal.TerminalManager
public class TerminalManager
Class that manages all available terminal implementations.
Configuration is stored in a properties file
(normally Terminals.properties).
| Method Summary | |
|---|---|
static TerminalManager |
createTerminalManager(java.util.Map terminals,
boolean winhack)
sets up a terminal manager with a ready made hashmap of terminals. |
static TerminalManager |
createTerminalManager(java.util.Properties settings)
Factory method for creating the Singleton instance of this class. Note that this factory method is called by the net.wimpi.telnetd.TelnetD class. |
java.lang.String[] |
getAvailableTerminals()
|
static TerminalManager |
getReference()
Accessor method for the Singleton instance of this class. Note that it returns null if the instance was not properly created beforehand. |
Terminal |
getTerminal(java.lang.String key)
Returns a reference to a terminal that has been set up, regarding to the key given as parameter. If the key does not represent a terminal name or any alias for any terminal, then the returned terminal will be a default basic terminal (i.e. |
java.util.HashMap |
getTerminals()
|
void |
setTerminals(java.util.HashMap terminals)
|
void |
setWindoofHack(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Terminal getTerminal(java.lang.String key)
key - String that represents a terminal name or an alias.
public java.lang.String[] getAvailableTerminals()
public void setWindoofHack(boolean b)
public static TerminalManager createTerminalManager(java.util.Properties settings)
throws BootException
settings - Properties defining the terminals as described in the
class documentation.
BootException
public static TerminalManager createTerminalManager(java.util.Map terminals,
boolean winhack)
throws BootException
terminals: - hashmap of terminal classes with their alias nameswinhack: - is this a windoof hack
BootExceptionpublic static TerminalManager getReference()
public java.util.HashMap getTerminals()
public void setTerminals(java.util.HashMap terminals)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||