|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
wcs.Servlet
public class Servlet
web compiler service -- a servlet to run javac and compiler generator tools and return the result as an applet for local execution.
This servlet supports GET and POST with the same key/value pairs. The servlet can create pages with textareas to request the web service. It replies to requests with the results of preprocessing, with error messages, or with an applet page.
The applet page uses GET to request and delete an archive
with the result of the compilation and with Applet which
will spoof standard i/o.
| Field Summary | |
|---|---|
protected String |
applet2html
configuration parameters from web.xml. |
protected File |
appletDir
configuration parameters from web.xml. |
protected File |
appletJar
configuration parameters from web.xml. |
protected Pattern |
appletPattern
configuration parameters from web.xml. |
protected String |
appletSystem
configuration parameters from web.xml. |
protected URL |
css
configuration parameters from web.xml. |
protected boolean |
DEBUG
configuration parameters from web.xml. |
protected Pattern |
denyPackage
configuration parameters from web.xml. |
protected Properties |
env
shared properties for the various tasks from web.xml. |
protected int |
expires
configuration parameters from web.xml. |
protected String |
howto
configuration parameters from web.xml. |
protected RuntimeException |
initException
set by init(). |
protected boolean |
javaEa
configuration parameters from web.xml. |
protected URL |
javascript
configuration parameters from web.xml. |
protected String |
jaySkeleton
configuration parameters from web.xml. |
protected String |
jobs2html
configuration parameters from web.xml. |
protected String |
servletBasename
configuration parameters from web.xml. |
protected String |
servletDirname
configuration parameters from web.xml. |
protected String |
target
configuration parameters from web.xml. |
protected String |
tmpPrefix
configuration parameters from web.xml. |
protected URL |
yydebug
configuration parameters from web.xml. |
| Constructor Summary | |
|---|---|
Servlet()
|
|
| Method Summary | |
|---|---|
protected static URI |
absolute(URI referer,
String url)
make HTTP URL absolute. |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
delegate to doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse). |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
process the request, regardless of submission method. |
protected static String |
getMessage(Throwable t)
get message or exception name. |
void |
init()
read web.xml, set initException on error. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected File appletDir
init()protected File appletJar
init()protected boolean DEBUG
init()protected boolean javaEa
init()protected int expires
init()protected Pattern appletPattern
init()protected Pattern denyPackage
init()protected String applet2html
init()protected String appletSystem
init()protected String jaySkeleton
init()protected String jobs2html
init()protected String howto
init()protected String servletBasename
init()protected String servletDirname
init()protected String target
init()protected String tmpPrefix
init()protected URL css
init()protected URL javascript
init()protected URL yydebug
init()protected Properties env
protected RuntimeException initException
init().
| Constructor Detail |
|---|
public Servlet()
| Method Detail |
|---|
public void init()
initException on error.
init in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).
doGet in class javax.servlet.http.HttpServletIOException
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletIOException
javax.servlet.ServletException
protected static URI absolute(URI referer,
String url)
referer - base for a partial URL.url - leading http: but not http:// is ignored.protected static String getMessage(Throwable t)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||