net.sf.hermesftp.console
Class ConsoleServerImpl

java.lang.Object
  extended by net.sf.hermesftp.console.ConsoleServerImpl
All Implemented Interfaces:
ConsoleServer

public class ConsoleServerImpl
extends java.lang.Object
implements ConsoleServer

Web based administration console. The console is powered by an embedded jetty web server.

Author:
Administrator

Constructor Summary
ConsoleServerImpl()
           
 
Method Summary
protected  void configureRealm(org.mortbay.jetty.security.UserRealm realm)
          Configures the security realm.
protected  void configureSecurity(org.mortbay.jetty.servlet.Context ctx)
          Configures the Console security.
 int getPort()
          Getter method for property port.
 org.mortbay.jetty.security.UserRealm getRealm()
          Getter methode for property realm.
 java.util.Map<java.lang.String,javax.servlet.Servlet> getServlets()
          Getter method for property servlets.
 UserManager getUserManager()
          Getter method for property userManager.
 void setPort(int port)
          Setter methode for property port.
 void setRealm(org.mortbay.jetty.security.UserRealm realm)
          Setter methode for property realm.
 void setServlets(java.util.Map<java.lang.String,javax.servlet.Servlet> servlets)
          Setter methode for property servlets.
 void setUserManager(UserManager userManager)
          Setter methode for property userManager.
 void start()
          Starts the console.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleServerImpl

public ConsoleServerImpl()
Method Detail

start

public void start()
           throws FtpConsoleException
Starts the console.

Specified by:
start in interface ConsoleServer
Throws:
FtpConsoleException - Error thrown by embedded web server.

configureSecurity

protected void configureSecurity(org.mortbay.jetty.servlet.Context ctx)
                          throws FtpConfigException
Configures the Console security. Per default basic authentication is enforced.

Parameters:
ctx - The Web context.
Throws:
FtpConfigException - Error in configuration.

configureRealm

protected void configureRealm(org.mortbay.jetty.security.UserRealm realm)
                       throws FtpConfigException
Configures the security realm.

Parameters:
realm - The realm to configure.
Throws:
FtpConfigException - Error due to an flow in the configuration.

getPort

public int getPort()
Getter method for property port.

Returns:
Property port.

setPort

public void setPort(int port)
Setter methode for property port.

Parameters:
port - Value for port.

getRealm

public org.mortbay.jetty.security.UserRealm getRealm()
Getter methode for property realm.

Returns:
Property realm.

setRealm

public void setRealm(org.mortbay.jetty.security.UserRealm realm)
Setter methode for property realm.

Parameters:
realm - Value for realm.

getServlets

public java.util.Map<java.lang.String,javax.servlet.Servlet> getServlets()
Getter method for property servlets.

Returns:
Property servlets.

setServlets

public void setServlets(java.util.Map<java.lang.String,javax.servlet.Servlet> servlets)
Setter methode for property servlets.

Parameters:
servlets - Value for servlets.

getUserManager

public UserManager getUserManager()
Getter method for property userManager.

Returns:
Property userManager.

setUserManager

public void setUserManager(UserManager userManager)
Setter methode for property userManager.

Parameters:
userManager - Value for userManager.


Copyright © 2005-2007 Lars Behnke. All Rights Reserved.