jhomenet.shell.server.local
Class LocalServer

java.lang.Object
  extended by java.lang.Thread
      extended by jhomenet.shell.server.Server
          extended by jhomenet.shell.server.local.LocalServer
All Implemented Interfaces:
java.lang.Runnable

public class LocalServer
extends Server


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class jhomenet.shell.server.Server
pauseServer, sessions, shutdown
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LocalServer(SystemInterface systemInterface)
          Default constructor.
 
Method Summary
protected  Session acceptNewSession()
          Waits for a connection request.
 void closeAllPorts()
          Cleans up any system resources held by this server.
static java.lang.String getWelcomeFile()
           
static boolean isRootAllowed()
          Indicates whether root access is allowed to this Telnet server.
 
Methods inherited from class jhomenet.shell.server.Server
broadcast, checkForNewSessions, getConnectedUsers, getSystemInterface, pauseServer, resumeServer, run, sessionEnded, shutDown
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalServer

public LocalServer(SystemInterface systemInterface)
Default constructor.

Method Detail

acceptNewSession

protected Session acceptNewSession()
Description copied from class: Server
Waits for a connection request. This method should block until a request is received. When a request is made, it should create, initialize, and return a new Session to handle that connection.

Specified by:
acceptNewSession in class Server
Returns:
a new Session
See Also:
Server.acceptNewSession()

closeAllPorts

public void closeAllPorts()
Description copied from class: Server
Cleans up any system resources held by this server.

Specified by:
closeAllPorts in class Server
See Also:
Server.closeAllPorts()

isRootAllowed

public static boolean isRootAllowed()
Indicates whether root access is allowed to this Telnet server. This is specified with the properties variable "TELNET_ROOT_ALLOWED". Set the variable to "false" to disallow root login. All other values will be interpreted as true and root logins will be accepted. This method will always return the value the variable had when the server was constructed. Changing the value of properties variable after creating the server will have no effect.

Returns:
true if root is allowed to login

getWelcomeFile

public static java.lang.String getWelcomeFile()


Copyright © 2004-2005 David Irwin. All Rights Reserved.