public class WandoraWebAppServer
extends java.lang.Object
WandoraModulesServer
Modifier and Type | Class and Description |
---|---|
class |
WandoraWebAppServer.IconThread
Deprecated.
|
private class |
WandoraWebAppServer.JettyHandler
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
autoStart
Deprecated.
|
private static int |
defaultPort
Deprecated.
|
private javax.swing.Icon |
hitIcon
Deprecated.
|
private java.lang.Thread |
iconThread
Deprecated.
|
private org.eclipse.jetty.server.Server |
jettyServer
Deprecated.
|
private java.lang.String |
keystoreFile
Deprecated.
|
private java.lang.String |
keystorePassword
Deprecated.
|
private long |
lastHit
Deprecated.
|
private boolean |
localOnly
Deprecated.
|
private org.eclipse.jetty.http.MimeTypes |
mimeTypes
Deprecated.
|
private javax.swing.Icon |
offIcon
Deprecated.
|
private javax.swing.Icon |
onIcon
Deprecated.
|
static java.lang.String |
OPTION_AUTOSTART
Deprecated.
|
static java.lang.String |
OPTION_KEYSTORE_FILE
Deprecated.
|
static java.lang.String |
OPTION_KEYSTORE_PASSWORD
Deprecated.
|
static java.lang.String |
OPTION_LOCALONLY
Deprecated.
|
static java.lang.String |
OPTION_PORT
Deprecated.
|
static java.lang.String |
OPTION_SERVERPATH
Deprecated.
|
static java.lang.String |
OPTION_USESSL
Deprecated.
|
private int |
port
Deprecated.
|
private org.eclipse.jetty.server.Handler |
requestHandler
Deprecated.
|
private org.eclipse.jetty.server.ServerConnector |
serverConnector
Deprecated.
|
private java.lang.String |
serverPath
Deprecated.
|
private javax.swing.JButton |
statusButton
Deprecated.
|
private boolean |
useSSL
Deprecated.
|
private Wandora |
wandora
Deprecated.
|
private java.util.HashMap<java.lang.String,WandoraWebApp> |
webApps
Deprecated.
|
Constructor and Description |
---|
WandoraWebAppServer(Wandora wandora)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
getDefaultContext(org.apache.velocity.VelocityContext context,
WandoraWebApp app)
Deprecated.
|
org.eclipse.jetty.server.Server |
getJetty()
Deprecated.
|
java.lang.String |
getKeystoreFile()
Deprecated.
|
java.lang.String |
getKeystorePassword()
Deprecated.
|
java.util.Map<java.lang.String,java.lang.String> |
getOpenUrls()
Deprecated.
|
int |
getPort()
Deprecated.
|
java.lang.String |
getServerPath()
Deprecated.
|
boolean |
getStatic(java.lang.String target,
java.lang.String staticPath,
WandoraWebApp app,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
boolean |
getStatic(java.lang.String target,
WandoraWebApp app,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
Wandora |
getWandora()
Deprecated.
|
java.util.HashMap<java.lang.String,WandoraWebApp> |
getWebApps()
Deprecated.
|
boolean |
isAutoStart()
Deprecated.
|
boolean |
isLocalOnly()
Deprecated.
|
boolean |
isRunning()
Deprecated.
|
boolean |
isUseSSL()
Deprecated.
|
void |
log(java.lang.String s)
Deprecated.
|
void |
log(java.lang.String s,
java.lang.Throwable t)
Deprecated.
|
void |
log(java.lang.Throwable t)
Deprecated.
|
void |
readOptions(Options options)
Deprecated.
|
boolean |
removeWebApp(java.lang.String key)
Deprecated.
|
static int |
resolvePort(Wandora wandora)
Deprecated.
|
void |
returnFile(javax.servlet.http.HttpServletResponse response,
java.io.File f)
Deprecated.
|
void |
returnNotFound(javax.servlet.http.HttpServletResponse response)
Deprecated.
|
void |
returnNotFound(javax.servlet.http.HttpServletResponse response,
java.lang.String message)
Deprecated.
|
protected java.util.ArrayList<WandoraWebApp> |
scanWebApps()
Deprecated.
|
void |
setAutoStart(boolean b)
Deprecated.
|
void |
setKeystoreFile(java.lang.String filename)
Deprecated.
|
void |
setKeystorePassword(java.lang.String password)
Deprecated.
|
void |
setLocalOnly(boolean b)
Deprecated.
|
void |
setPort(int p)
Deprecated.
|
void |
setServerPath(java.lang.String p)
Deprecated.
|
void |
setStatusComponent(javax.swing.JButton button,
java.lang.String onIcon,
java.lang.String offIcon,
java.lang.String hitIcon)
Deprecated.
|
void |
setUseSSL(boolean b)
Deprecated.
|
void |
setWebApp(WandoraWebApp app)
Deprecated.
|
void |
start()
Deprecated.
|
void |
stopServer()
Deprecated.
|
private void |
updateStatusIcon()
Deprecated.
|
void |
writeOptions(Options options)
Deprecated.
|
void |
writeResponse(javax.servlet.http.HttpServletResponse response,
int code,
java.lang.String message)
Deprecated.
|
void |
writeResponse(javax.servlet.http.HttpServletResponse response,
int code,
java.lang.String message,
java.lang.Throwable e)
Deprecated.
|
private static final int defaultPort
public static final java.lang.String OPTION_AUTOSTART
public static final java.lang.String OPTION_PORT
public static final java.lang.String OPTION_LOCALONLY
public static final java.lang.String OPTION_SERVERPATH
public static final java.lang.String OPTION_USESSL
public static final java.lang.String OPTION_KEYSTORE_FILE
public static final java.lang.String OPTION_KEYSTORE_PASSWORD
private Wandora wandora
private int port
private boolean useSSL
private java.lang.String keystoreFile
private java.lang.String keystorePassword
private java.lang.String serverPath
private boolean localOnly
private boolean autoStart
private javax.swing.JButton statusButton
private javax.swing.Icon onIcon
private javax.swing.Icon offIcon
private javax.swing.Icon hitIcon
private java.lang.Thread iconThread
private long lastHit
private org.eclipse.jetty.server.Server jettyServer
private org.eclipse.jetty.server.ServerConnector serverConnector
private org.eclipse.jetty.server.Handler requestHandler
private org.eclipse.jetty.http.MimeTypes mimeTypes
private java.util.HashMap<java.lang.String,WandoraWebApp> webApps
public WandoraWebAppServer(Wandora wandora)
public void returnNotFound(javax.servlet.http.HttpServletResponse response)
public void returnNotFound(javax.servlet.http.HttpServletResponse response, java.lang.String message)
public java.util.HashMap<java.lang.String,WandoraWebApp> getWebApps()
public void setWebApp(WandoraWebApp app)
public boolean removeWebApp(java.lang.String key)
public void log(java.lang.String s)
public void log(java.lang.Throwable t)
public void log(java.lang.String s, java.lang.Throwable t)
public org.eclipse.jetty.server.Server getJetty()
public Wandora getWandora()
public void readOptions(Options options)
public void writeOptions(Options options)
private void updateStatusIcon()
public void setStatusComponent(javax.swing.JButton button, java.lang.String onIcon, java.lang.String offIcon, java.lang.String hitIcon)
public boolean isRunning()
public void start()
public void stopServer()
public void setPort(int p)
public int getPort()
public void setUseSSL(boolean b)
public boolean isUseSSL()
public void setServerPath(java.lang.String p)
public java.lang.String getServerPath()
public boolean isLocalOnly()
public void setLocalOnly(boolean b)
public boolean isAutoStart()
public void setAutoStart(boolean b)
public void setKeystoreFile(java.lang.String filename)
public java.lang.String getKeystoreFile()
public void setKeystorePassword(java.lang.String password)
public java.lang.String getKeystorePassword()
public static int resolvePort(Wandora wandora)
protected void getDefaultContext(org.apache.velocity.VelocityContext context, WandoraWebApp app)
public void writeResponse(javax.servlet.http.HttpServletResponse response, int code, java.lang.String message)
public void writeResponse(javax.servlet.http.HttpServletResponse response, int code, java.lang.String message, java.lang.Throwable e)
public boolean getStatic(java.lang.String target, java.lang.String staticPath, WandoraWebApp app, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public boolean getStatic(java.lang.String target, WandoraWebApp app, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public void returnFile(javax.servlet.http.HttpServletResponse response, java.io.File f) throws java.io.IOException
java.io.IOException
protected java.util.ArrayList<WandoraWebApp> scanWebApps()
public java.util.Map<java.lang.String,java.lang.String> getOpenUrls()
Copyright 2004-2015 Wandora Team