|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webcore.webserver.application.WWWServerConsole
Application to start a webserver. Joni: lisätty mahdollisuus antaa porttinumerot parametrina main-metodille
Constructor Summary | |
WWWServerConsole(java.lang.String documentBase)
|
|
WWWServerConsole(java.lang.String sslDocumentBase,
java.lang.String ksPath,
java.lang.String pass)
|
|
WWWServerConsole(java.lang.String documentBase,
java.lang.String sslDocumentBase,
java.lang.String ksPath,
java.lang.String pass)
|
|
WWWServerConsole(java.lang.String documentBase,
java.lang.String sslDocumentBase,
java.lang.String ksPath,
java.lang.String pass,
int port,
int sslPort)
Toinen konstruktori jolle voi antaa porttinumerot parametrina |
Method Summary | |
static void |
main(java.lang.String[] args)
Starts the web server. |
void |
minorErrorOccured(WebServerEvent e)
Called when a minor IO error occurs which is acceptable by the HTTP protocol. |
void |
requested(WebServerEvent e)
Called when an HTTP request comes in. |
static void |
start(java.lang.String[] args,
int port,
int SSLport)
Apumetodi joka kutsuu main-metodia |
void |
startedListening(WebServerEvent e)
Called when the webserver has started listening in response to the start method. |
void |
stoppedListening(WebServerEvent e)
Called when the webserver has stopped listening in response to the terminate method of an unrecoverable Exception. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WWWServerConsole(java.lang.String documentBase, java.lang.String sslDocumentBase, java.lang.String ksPath, java.lang.String pass)
public WWWServerConsole(java.lang.String documentBase, java.lang.String sslDocumentBase, java.lang.String ksPath, java.lang.String pass, int port, int sslPort)
public WWWServerConsole(java.lang.String documentBase)
public WWWServerConsole(java.lang.String sslDocumentBase, java.lang.String ksPath, java.lang.String pass)
Method Detail |
public static void main(java.lang.String[] args)
Usage: documentBase, REDIRECT | ssldocumentBase keystorePath keystorePass | documentBase ssldocumentBase keystorePath keystorePassdocumentBase is the path to the document base.
Note:java keystores allow separate keystore key passwords, this application expects the keystore password and all key passwords to be the same.
public static void start(java.lang.String[] args, int port, int SSLport)
public void startedListening(WebServerEvent e)
WebServerListener
startedListening
in interface WebServerListener
public void stoppedListening(WebServerEvent e)
WebServerListener
stoppedListening
in interface WebServerListener
public void minorErrorOccured(WebServerEvent e)
WebServerListener
minorErrorOccured
in interface WebServerListener
public void requested(WebServerEvent e)
WebServerListener
requested
in interface WebServerListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |