public class Jetty9HttpServerImpl extends java.lang.Object implements YaCyHttpServer
Modifier and Type | Field and Description |
---|---|
private Server |
server |
Constructor and Description |
---|
Jetty9HttpServerImpl(int port) |
Modifier and Type | Method and Description |
---|---|
int |
getSslPort()
The port of actual running ssl connector
|
java.lang.String |
getVersion()
get Jetty version
|
private javax.net.ssl.SSLContext |
initSslContext(Switchboard sb)
Init SSL Context from config settings
|
void |
reconnect(int milsec)
reconnect with new port settings (after waiting milsec) - routine returns
immediately
checks http and ssl connector for new port settings
|
void |
removeUser(java.lang.String username)
removes user from knowuser cache of loginservice
|
void |
resetUser(java.lang.String username)
forces loginservice to reload user credentials
(used after setting new pwd in cfg file/db)
|
void |
startupServer()
start http server
|
void |
stop()
stop http server and wait for it
|
boolean |
withSSL() |
public Jetty9HttpServerImpl(int port)
port
- TCP Port to listen for http requestspublic void startupServer() throws java.lang.Exception
startupServer
in interface YaCyHttpServer
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface YaCyHttpServer
java.lang.Exception
public boolean withSSL()
withSSL
in interface YaCyHttpServer
public int getSslPort()
getSslPort
in interface YaCyHttpServer
public void reconnect(int milsec)
reconnect
in interface YaCyHttpServer
milsec
- wait timepublic void resetUser(java.lang.String username)
username
- public void removeUser(java.lang.String username)
username
- public java.lang.String getVersion()
getVersion
in interface YaCyHttpServer
private javax.net.ssl.SSLContext initSslContext(Switchboard sb)
sb
- Switchboard