de.kosi.server
Class HttpServerInterfaceImpl

java.lang.Object
  |
  +--de.kosi.server.HttpServerInterfaceImpl
All Implemented Interfaces:
HttpServerInterface, java.rmi.Remote, java.io.Serializable

public class HttpServerInterfaceImpl
extends java.lang.Object
implements HttpServerInterface, java.io.Serializable

Interface to configure the integrated HTTP server.

ChangeLog:

 $Log: HttpServerInterfaceImpl.java,v $
 Revision 1.4  2001/06/24 14:34:27  jiriki
 Updated jetty to 3.0.6

 Revision 1.3  2001/06/04 14:21:10  jiriki
 Made source more comliant to coding guidelines.

 Revision 1.2  2001/05/02 19:19:22  jiriki
 Http Server is running correctly again.

 Revision 1.1.1.1  2001/04/29 18:05:18  jiriki
 Imported sources from zola.

 Revision 1.3  2001/03/19 21:50:49  wombat
 - Worked on admin client.
 - improved shutdown sequence
 - removed bugs in login/logout sequence

 Revision 1.2  2001/03/18 18:10:26  wombat
 Updated Documentation

 Revision 1.1  2001/03/18 17:33:02  wombat
 Changed database concept

 

Version:
$Revision: 1.4 $ ($Date: 2001/06/24 14:34:27 $)
Author:
Jan-Ole Janssen, Niklas Mehner, Time Sticher
See Also:
Serialized Form

Constructor Summary
HttpServerInterfaceImpl()
          Create a new HttpServerInterfaceImpl.
 
Method Summary
 java.lang.String getDirectory()
          Return the directory the http server serves.
 int getPort()
          Return the port of the http server.
 boolean isRunning()
          Returns if the HttpServer is running.
 void setDirectory(java.lang.String directory)
          Set the directory the http server serves.
 void setPort(int port)
          Set the port the http server is running on.
 void setRunning(boolean running)
          Set if the htp server should be running.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServerInterfaceImpl

public HttpServerInterfaceImpl()
Create a new HttpServerInterfaceImpl.
Method Detail

isRunning

public boolean isRunning()
                  throws KosiAccessException,
                         InvalidSessionException
Returns if the HttpServer is running.
Specified by:
isRunning in interface HttpServerInterface
Returns:
true if the server is running.
Throws:
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

setRunning

public void setRunning(boolean running)
                throws KosiAccessException,
                       InvalidSessionException
Set if the htp server should be running.
Specified by:
setRunning in interface HttpServerInterface
Parameters:
running - true if the http server should be running.
Throws:
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

getPort

public int getPort()
            throws KosiAccessException,
                   InvalidSessionException
Return the port of the http server.
Specified by:
getPort in interface HttpServerInterface
Returns:
Port of the server.
Throws:
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

setPort

public void setPort(int port)
             throws KosiAccessException,
                    InvalidSessionException
Set the port the http server is running on.
Specified by:
setPort in interface HttpServerInterface
Parameters:
port - The port of the HttpServer.
Throws:
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

getDirectory

public java.lang.String getDirectory()
                              throws KosiAccessException,
                                     InvalidSessionException
Return the directory the http server serves.
Specified by:
getDirectory in interface HttpServerInterface
Returns:
Directory the http server serves.
Throws:
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

setDirectory

public void setDirectory(java.lang.String directory)
                  throws KosiAccessException,
                         InvalidSessionException
Set the directory the http server serves.
Specified by:
setDirectory in interface HttpServerInterface
Parameters:
directory - Directory the http server serves.
Throws:
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.