|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAcme.Serve.Serve
org.jminor.common.server.web.WebStartServer
public final class WebStartServer
A simple web server for serving files.
WebStartServer server = new WebStartServer("c:\webstart"); server.serve();
Nested Class Summary |
---|
Nested classes/interfaces inherited from class Acme.Serve.Serve |
---|
Acme.Serve.Serve.AcceptLocaleEnumeration, Acme.Serve.Serve.Acceptor, Acme.Serve.Serve.AcmeSession, Acme.Serve.Serve.AsyncCallback, Acme.Serve.Serve.BasicAuthRealm, Acme.Serve.Serve.HttpSessionContextImpl, Acme.Serve.Serve.LocaleWithWeight, Acme.Serve.Serve.PathTreeDictionary, Acme.Serve.Serve.ServeConfig, Acme.Serve.Serve.ServeConnection, Acme.Serve.Serve.ServeInputStream, Acme.Serve.Serve.ServeOutputStream, Acme.Serve.Serve.SimpleRequestDispatcher |
Field Summary | |
---|---|
static int |
DEFAULT_PORT
|
Fields inherited from class Acme.Serve.Serve |
---|
acceptor, ARG_ACCEPTOR_CLASS, ARG_ACCESS_LOG_FMT, ARG_ALIASES, ARG_BACKLOG, ARG_BINDADDRESS, ARG_CGI_PATH, ARG_ERR, ARG_JSP, ARG_KEEPALIVE, ARG_KEEPALIVE_TIMEOUT, ARG_LOG_DIR, ARG_LOG_OPTIONS, ARG_MAX_ACTIVE_SESSIONS, ARG_MAX_CONN_USE, ARG_NOHUP, ARG_OUT, ARG_PORT, ARG_PROXY_CONFIG, ARG_REALMS, ARG_SERVLETS, ARG_SESSION_PERSIST, ARG_SESSION_SEED, ARG_SESSION_TIMEOUT, ARG_THREAD_POOL_SIZE, ARG_THROTTLES, ARG_WAR, ARG_WORK_DIRECTORY, arguments, BGCOLOR, DEF_LOGENCODING, DEF_MAX_CONN_USE, DEF_MIN_ACT_SESS, DEF_PORT, DEF_PROXY_CONFIG, DEF_SESSION_TIMEOUT, defaultRegistry, DESTROY_TIME_SEC, expiredIn, gzipInStreamConstr, hostName, HTTP_MAX_HDR_LEN, keepAliveCleaner, keepAliveHdrParams, mappingtable, mime, realms, serverThreads, sessions, ssclThread, threadPool, UTF8, virtuals |
Constructor Summary | |
---|---|
WebStartServer(String documentRoot)
Instantiates a new WebStartServer on the default port. |
|
WebStartServer(String documentRoot,
int port)
Instantiates a new WebStartServer on the given port. |
Method Summary | |
---|---|
static void |
main(String[] args)
Runs a WebStartServer. |
void |
stop()
|
Methods inherited from class Acme.Serve.Serve |
---|
addDefaultServlets, addDefaultServlets, addServlet, addServlet, addServlet, addServlet, addServlet, addWarDeployer, console, createAcceptor, destroyAllServlets, getAttribute, getAttributeNames, getContext, getContextPath, getInitParameter, getInitParameterNames, getKeepAliveDuration, getKeepAliveParamStr, getMajorVersion, getMaxTimesConnectionUse, getMimeType, getMinorVersion, getNamedDispatcher, getPersistentFile, getRealPath, getRequestDispatcher, getResource, getResourceAsStream, getResourcePaths, getServerInfo, getServlet, getServletContextName, getServletNames, getServlets, initMime, isAccessLogged, isKeepAlive, isShowReferer, isShowUserAgent, log, log, log, notifyStop, removeAttribute, serve, setAccessLogged, setAttribute, setHost, setMappingTable, setRealms, unloadServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PORT
Constructor Detail |
---|
public WebStartServer(String documentRoot)
documentRoot
- the document rootpublic WebStartServer(String documentRoot, int port)
documentRoot
- the document rootport
- the port on which to serve filesMethod Detail |
---|
public void stop()
public static void main(String[] args)
args
- documentRoot [args]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |