|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.telnetd.TelnetD
public class TelnetD
Class that implements a configurable and embeddable telnet daemon.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
debuglog
|
static org.apache.commons.logging.Log |
syslog
|
| Method Summary | |
|---|---|
static TelnetD |
createTelnetD()
creates an independant instance of the telnetd object, no setup. |
static TelnetD |
createTelnetD(java.util.Properties main)
Factory method to create a TelnetD Instance. |
static TelnetD |
createTelnetD(java.lang.String urlprefix)
Factory method to create a TelnetD singleton instance, loading the standard properties files from the given String containing an URL location. |
java.util.List |
getListeners()
|
PortListener |
getPortListener(java.lang.String id)
Returns a PortListener for the given
identifier. |
static TelnetD |
getReference()
Accessor method for the Singleton instance of this class. |
ShellManager |
getShellManager()
|
java.lang.String |
getVersion()
Accessor method to version information. |
static void |
main(java.lang.String[] args)
Implements a test startup of an example server. |
void |
setListeners(java.util.List listeners)
|
void |
setShellManager(ShellManager shellManager)
|
void |
start()
Start this telnet daemon, respectively all configured listeners. |
void |
stop()
Stop this telnet daemon, respectively all configured listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static org.apache.commons.logging.Log debuglog
public static org.apache.commons.logging.Log syslog
| Method Detail |
|---|
public void start()
public void stop()
public java.lang.String getVersion()
public PortListener getPortListener(java.lang.String id)
PortListener for the given
identifier.
id - the identifier of the PortListener instance.
PortListener instance or null if an instance
with the given identifier does not exist.
public static TelnetD createTelnetD(java.util.Properties main)
throws BootException
main - Properties object with settings for the TelnetD.
BootException - if the setup process fails.
public static TelnetD createTelnetD(java.lang.String urlprefix)
throws BootException
urlprefix - String containing an URL prefix.
BootException - if the setup process fails.public static TelnetD createTelnetD()
public static TelnetD getReference()
public static void main(java.lang.String[] args)
java net.wimpi.telnetd.TelnetD [URL prefix pointing to properties]
args - String array containing arguments.public java.util.List getListeners()
public void setListeners(java.util.List listeners)
public ShellManager getShellManager()
public void setShellManager(ShellManager shellManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||