|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.rdg.resc.jstyx.server.StyxServer
public class StyxServer
A Styx server.
| Constructor Summary | |
|---|---|
StyxServer(int port,
org.apache.mina.protocol.ProtocolProvider provider)
Creates a Styx server that listens on the given port and uses the given protocol provider (This is used by the Styx interloper class) Connections are anonymous and unsecured. |
|
StyxServer(int port,
StyxDirectory root)
Creates a Styx server that exposes the given directory under the given port. |
|
StyxServer(int port,
StyxDirectory root,
java.lang.String securityConfigFile)
Creates a Styx server. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Simple test Styx server that exposes the contents of a local directory. |
void |
start()
Starts the Styx server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyxServer(int port,
StyxDirectory root)
throws StyxSecurityException
java.lang.IllegalArgumentException - if the port number is invalid or the
root is null.
StyxSecurityException - if there was an error setting up the
security context (should never happen since this will be an unsecured
server).
public StyxServer(int port,
org.apache.mina.protocol.ProtocolProvider provider)
java.lang.IllegalArgumentException - if the port number is invalid or the
provider is null.
public StyxServer(int port,
StyxDirectory root,
java.lang.String securityConfigFile)
throws StyxSecurityException
port - The port number on which the server will listenroot - The root of the Styx filesystem to servesecurityConfigFile - The file containing security information
(user details, SSL setup etc). If this is null, the server will allow
anonymous access and no traffic will be encrypted.
java.lang.IllegalArgumentException - if the port number is invalid or
root == null.
StyxSecurityException - if there was an error reading security
configuration from securityConfigFile.| Method Detail |
|---|
public void start()
throws java.io.IOException
java.io.IOException - if an error occurred
public static void main(java.lang.String[] args)
throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||