|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.net.JettyWrapper
public class JettyWrapper
Implements a "wrapper" for Jetty 3.1.4 so it can be created with a parameterless constructor and then initialized with a configuration file.
Constructor Summary | |
---|---|
JettyWrapper()
|
Method Summary | |
---|---|
void |
configure(java.lang.String configFilePath)
Configures the server and sets the address and port number in Globals
(for reference). |
org.mortbay.jetty.Server |
getServer()
|
void |
run()
Starts the http server. |
void |
shutdown()
Shuts down the process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JettyWrapper()
Method Detail |
---|
public void configure(java.lang.String configFilePath) throws java.io.IOException
Globals
(for reference).
configure
in interface AliceCompatibleHttpServer
configFilePath
- the config file path to pass to Jetty
java.io.IOException
- if the configuration file cannot be readpublic void run()
AliceCompatibleHttpServer
run
in interface java.lang.Runnable
run
in interface AliceCompatibleHttpServer
public void shutdown()
BotProcess
shutdown
in interface BotProcess
public org.mortbay.jetty.Server getServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |