public class WandoraJettyServer
extends java.lang.Object
WandoraJettyServer implements Wandora's embedded HTTP server used to browse Wandora stored topics and associations with external WWW browser. Implementation uses Jetty HTTP server.
Firefox plugin communicates with Wandora using the WandorJettyServer implementation too.
WandoraHttpServer
Modifier and Type | Class and Description |
---|---|
class |
WandoraJettyServer.IconThread
Deprecated.
|
private class |
WandoraJettyServer.JettyHandler
Deprecated.
|
class |
WandoraJettyServer.TopicFilter
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
autoStart
Deprecated.
|
private static int |
defaultPort
Deprecated.
|
private BrowserExtractorManager |
extractorManager
Deprecated.
|
private javax.swing.Icon |
hitIcon
Deprecated.
|
private java.lang.Thread |
iconThread
Deprecated.
|
private org.eclipse.jetty.server.Server |
jettyServer
Deprecated.
|
private long |
lastHit
Deprecated.
|
private boolean |
localOnly
Deprecated.
|
private java.lang.String |
loginPass
Deprecated.
|
private java.lang.String |
loginUser
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_LOCALONLY
Deprecated.
|
static java.lang.String |
OPTION_PASSWORD
Deprecated.
|
static java.lang.String |
OPTION_PORT
Deprecated.
|
static java.lang.String |
OPTION_STATICPATH
Deprecated.
|
static java.lang.String |
OPTION_TEMPLATEFILE
Deprecated.
|
static java.lang.String |
OPTION_TEMPLATEPATH
Deprecated.
|
static java.lang.String |
OPTION_USERNAME
Deprecated.
|
private int |
port
Deprecated.
|
private org.eclipse.jetty.server.Handler |
requestHandler
Deprecated.
|
private java.lang.String |
staticPath
Deprecated.
|
private javax.swing.JButton |
statusButton
Deprecated.
|
private java.lang.String |
templateFile
Deprecated.
|
private java.lang.String |
templatePath
Deprecated.
|
private org.apache.velocity.app.VelocityEngine |
velocityEngine
Deprecated.
|
private Wandora |
wandora
Deprecated.
|
Constructor and Description |
---|
WandoraJettyServer(Wandora wandora)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
getDefaultContext(org.apache.velocity.VelocityContext context)
Deprecated.
|
java.lang.String |
getLoginPassword()
Deprecated.
|
java.lang.String |
getLoginUser()
Deprecated.
|
protected boolean |
getPage(java.lang.String target,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
int |
getPort()
Deprecated.
|
java.lang.String |
getStaticPath()
Deprecated.
|
java.lang.String |
getTemplateFile()
Deprecated.
|
java.lang.String |
getTemplatePath()
Deprecated.
|
boolean |
isAutoStart()
Deprecated.
|
boolean |
isLocalOnly()
Deprecated.
|
boolean |
isRunning()
Deprecated.
|
void |
readOptions(Options options)
Deprecated.
|
static int |
resolvePort(Wandora wandora)
Deprecated.
|
void |
returnFile(javax.servlet.http.HttpServletResponse response,
java.io.File f)
Deprecated.
|
void |
setAutoStart(boolean b)
Deprecated.
|
void |
setLocalOnly(boolean b)
Deprecated.
|
void |
setLogin(java.lang.String u,
java.lang.String p)
Deprecated.
|
void |
setLoginPassword(java.lang.String s)
Deprecated.
|
void |
setLoginUser(java.lang.String s)
Deprecated.
|
void |
setPort(int p)
Deprecated.
|
void |
setStaticPath(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 |
setTemplateFile(java.lang.String p)
Deprecated.
|
void |
setTemplatePath(java.lang.String p)
Deprecated.
|
void |
start()
Deprecated.
|
protected java.io.PrintWriter |
startPluginResponse(javax.servlet.http.HttpServletResponse response,
int code,
java.lang.String text)
Deprecated.
|
void |
stopServer()
Deprecated.
|
private void |
updateStatusIcon()
Deprecated.
|
void |
writeOptions(Options options)
Deprecated.
|
protected void |
writeResponse(javax.servlet.http.HttpServletResponse response,
int code,
java.lang.String message)
Deprecated.
|
protected 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_STATICPATH
public static final java.lang.String OPTION_TEMPLATEPATH
public static final java.lang.String OPTION_TEMPLATEFILE
public static final java.lang.String OPTION_USERNAME
public static final java.lang.String OPTION_PASSWORD
private int port
private java.lang.String loginUser
private java.lang.String loginPass
private Wandora wandora
private java.lang.String staticPath
private java.lang.String templateFile
private java.lang.String templatePath
private org.apache.velocity.app.VelocityEngine velocityEngine
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.Handler requestHandler
private org.eclipse.jetty.http.MimeTypes mimeTypes
private BrowserExtractorManager extractorManager
public WandoraJettyServer(Wandora wandora)
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 setLoginUser(java.lang.String s)
public java.lang.String getLoginUser()
public void setLoginPassword(java.lang.String s)
public java.lang.String getLoginPassword()
public void setLogin(java.lang.String u, java.lang.String p)
public void setPort(int p)
public int getPort()
public void setStaticPath(java.lang.String p)
public java.lang.String getStaticPath()
public void setTemplateFile(java.lang.String p)
public java.lang.String getTemplateFile()
public void setTemplatePath(java.lang.String p)
public java.lang.String getTemplatePath()
public boolean isLocalOnly()
public void setLocalOnly(boolean b)
public boolean isAutoStart()
public void setAutoStart(boolean b)
public static int resolvePort(Wandora wandora)
protected void getDefaultContext(org.apache.velocity.VelocityContext context)
protected void writeResponse(javax.servlet.http.HttpServletResponse response, int code, java.lang.String message)
protected void writeResponse(javax.servlet.http.HttpServletResponse response, int code, java.lang.String message, java.lang.Throwable e)
protected java.io.PrintWriter startPluginResponse(javax.servlet.http.HttpServletResponse response, int code, java.lang.String text)
protected boolean getPage(java.lang.String target, 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
Copyright 2004-2015 Wandora Team