de.kosi.server
Interface HttpServerInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
HttpServerInterfaceImpl

public interface HttpServerInterface
extends java.rmi.Remote

Interface to configure the integrated HTTP server.

ChangeLog:

 $Log: HttpServerInterface.java,v $
 Revision 1.2  2001/06/04 14:21:10  jiriki
 Made source more comliant to coding guidelines.

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

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

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

 

Version:
$Revision: 1.2 $ ($Date: 2001/06/04 14:21:10 $)
Author:
Jan-Ole Janssen, Niklas Mehner, Time Sticher

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.
 

Method Detail

isRunning

public boolean isRunning()
                  throws java.rmi.RemoteException,
                         KosiAccessException,
                         InvalidSessionException
Returns if the HttpServer is running.
Returns:
true if the server is running.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
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 java.rmi.RemoteException,
                       KosiAccessException,
                       InvalidSessionException
Set if the htp server should be running.
Parameters:
running - true if the http server should be running.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

getPort

public int getPort()
            throws java.rmi.RemoteException,
                   KosiAccessException,
                   InvalidSessionException
Return the port of the http server.
Returns:
Port of the server.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
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 java.rmi.RemoteException,
                    KosiAccessException,
                    InvalidSessionException
Set the port the http server is running on.
Parameters:
port - The port of the HttpServer.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
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 java.rmi.RemoteException,
                                     KosiAccessException,
                                     InvalidSessionException
Return the directory the http server serves.
Returns:
Directory the http server serves.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
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 java.rmi.RemoteException,
                         KosiAccessException,
                         InvalidSessionException
Set the directory the http server serves.
Parameters:
directory - Directory the http server serves.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.