|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mortbay.HTTP.Configure.BaseConfiguration | +--com.mortbay.Jetty.Server21
Basic WWW server configuration. A simple configuration of Jetty for servlet and file serving, which may be driven from the program or from a properties file.
ServerName./pathOfStack.InetAddrPort n.n.n.n:pppp ServerName./pathOfStack.Servlet./path name=package.class[?paramFile] ServerName./pathOfStack.Directory./path directory/name ServerName./pathOfStack.Directory.allowPut true|false ServerName./pathOfStack.Directory.allowDelete true|false ServerName./pathOfStack.Directory./path directory/name ServerName./pathOfStack.Log./path filename|err|out
JettyServer.prp
Fields inherited from class com.mortbay.HTTP.Configure.BaseConfiguration |
addresses,
attributes,
exceptionHandlersMap,
httpHandlersMap,
listenerClasses,
mimeMap,
properties |
Constructor Summary | |
Server21(java.lang.String serverName)
Deprecated. Constructor. |
Method Summary | |
void |
addAddress(InetAddrPort addr)
Deprecated. Add an address to listen at. |
void |
addAuthRealm(java.lang.String stack,
java.lang.String path,
java.lang.String name,
java.lang.String filename)
Deprecated. Add a authentication realm to the server |
void |
addDirectory(java.lang.String stack,
java.lang.String path,
java.lang.String directory)
Deprecated. Add a file directory to the server |
void |
addFilter(java.lang.String stack,
java.lang.String path,
java.lang.String filterClass)
Deprecated. Add a Filter |
void |
addForward(java.lang.String stack,
java.lang.String path,
java.lang.String url)
Deprecated. Add a Forwarder |
void |
addLog(java.lang.String stack,
java.lang.String path,
java.lang.String log)
Deprecated. Add a log sink to the server |
void |
addProxy(java.lang.String stack)
Deprecated. Add a Proxy |
void |
addServlet(java.lang.String stack,
java.lang.String path,
ServletHolder holder)
Deprecated. Add a servlet to the server |
void |
addServlet(java.lang.String stack,
java.lang.String path,
java.lang.String name,
java.lang.String servlet,
java.lang.String paramFile)
Deprecated. Add a servlet to the server |
void |
addTranslation(java.lang.String stack,
java.lang.String path,
java.lang.String translation)
Deprecated. Add a URL translation |
void |
allowDelete(java.lang.String stack,
java.lang.Boolean value)
Deprecated. Set the allowDelete option on the FileHandler for the server |
void |
allowPut(java.lang.String stack,
java.lang.Boolean value)
Deprecated. Set the allowPut option on the FileHandler for the server |
static java.util.Hashtable |
buildServers(java.util.Properties props)
Deprecated. Build a Hashtable of Server configurations from a server properties instance |
void |
join()
Deprecated. join |
static void |
main(java.lang.String[] args)
Deprecated. main |
void |
start()
Deprecated. Start serving |
Methods inherited from class com.mortbay.HTTP.Configure.BaseConfiguration |
addresses,
exceptionHandlersMap,
getAttribute,
getMimeByExtension,
getMimeType,
getProperties,
getProperty,
httpHandlersMap,
listenerClasses,
log,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Server21(java.lang.String serverName) throws java.io.IOException
port
- Method Detail |
public void addAddress(InetAddrPort addr)
addr
- public void addServlet(java.lang.String stack, java.lang.String path, ServletHolder holder)
path
- The path of the servlet (see PathMap for encoding)name
- The name of the servletholder
- A servlet holderPathMap
public void addServlet(java.lang.String stack, java.lang.String path, java.lang.String name, java.lang.String servlet, java.lang.String paramFile) throws java.io.IOException, javax.servlet.ServletException, java.lang.ClassNotFoundException
path
- The path of the servlet (see PathMap for encoding)name
- The name of the servletservlet
- The class name of the servletparamFile
- Servlet init param file name May be nullPathMap
public void addDirectory(java.lang.String stack, java.lang.String path, java.lang.String directory)
path
- The path of the url to mapdirectory
- The name of the directory with the files to servePathMap
public void allowPut(java.lang.String stack, java.lang.Boolean value)
value
- The new value for the optionFileHandler
public void allowDelete(java.lang.String stack, java.lang.Boolean value)
value
- The new value for the optionFileHandler
public void addLog(java.lang.String stack, java.lang.String path, java.lang.String log) throws java.io.IOException
path
- The path of the servlet (see PathMap for encoding)log
- A file name or "err" or "out"PathMap
public void addAuthRealm(java.lang.String stack, java.lang.String path, java.lang.String name, java.lang.String filename) throws java.io.IOException
path
- The path of the realm (see PathMap for encoding)name
- The name of the realmfilename
- The realm filePathMap
public void addTranslation(java.lang.String stack, java.lang.String path, java.lang.String translation)
stack
- The path of the handler stack to add to.
A null stack is the same as "" or all paths.path
- The path of the translation (see PathMap for encoding)translation
- The new pathPathMap
public void addForward(java.lang.String stack, java.lang.String path, java.lang.String url) throws java.net.MalformedURLException
stack
- The path of the handler stack to add to.
A null stack is the same as "" or all paths.path
- The path of the forward (see PathMap for encoding)url
- The url to forward toPathMap
public void addFilter(java.lang.String stack, java.lang.String path, java.lang.String filterClass)
stack
- The path of the handler stack to add to.
A null stack is the same as "" or all paths.path
- The path of the filter (see PathMap for encoding)filterClass
- the name of the filter classPathMap
public void addProxy(java.lang.String stack)
stack
- The path of the handler stack to add to.
A null stack is the same as "" or all paths.PathMap
public void start() throws java.lang.Exception
public void join() throws java.lang.InterruptedException
public static java.util.Hashtable buildServers(java.util.Properties props) throws java.lang.Exception
props
- The server propertiespublic static void main(java.lang.String[] args)
args
- optional property file name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |