js
Class Servlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by js.Servlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

Deprecated. Replaced by Servlet.

public class Servlet
extends javax.servlet.http.HttpServlet

servlet to run javac from tomcat and return the result as an applet for local execution.

This servlet supports GET and POST with the same key/value pairs. The servlet creates a page with defaults to request the web service and replies to this page with error messages from javac or with an applet.

The applet uses GET to request and delete an archive with the result of the compilation and with System which will spoof standard i/o.

applet basename of a temporary jar file for an applet which will be deleted. Takes precedence over all other key/value pairs.
javac compile, if value starts with t.
referer URL to resolve a partial url; taken from the header value sent by the browser (which does not exist for file:).
source input text for javac, takes precedence over url.
url address of input text for javac. A partial URL is relative to referer. Only HTTP is supported. Further URLs can be specified using url0, url1, and so on.

See Also:
Serialized Form

Field Summary
protected  String appletJar
          Deprecated. jar from which applet jar is created.
protected  String appletPattern
          Deprecated. pattern to validate applet value.
protected  String appletPrefix
          Deprecated. prepended to applet value to create path to jar.
protected  String appletSource
          Deprecated. source file for applet.
protected  String bootclasspath
          Deprecated. options to crosscompile (e.g., for MSIE to 1.3).
protected  int expire
          Deprecated. expiration intervall for archive in milliseconds.
protected  String extdirs
          Deprecated. options to crosscompile (e.g., for MSIE to 1.3).
protected  String jar
          Deprecated. paths to javac, jar, and rm.
protected  String javac
          Deprecated. paths to javac, jar, and rm.
protected static Pattern packagePattern
          Deprecated. pattern to extract package path, if any, and public class name.
protected  String rm
          Deprecated. paths to javac, jar, and rm.
protected  String servletBasename
          Deprecated. servlet's name.
protected  String servletDirname
          Deprecated. servlet's context path.
protected  String sourceOption
          Deprecated. options to crosscompile (e.g., for MSIE to 1.3).
static ResourceBundle templates
          Deprecated. MessageFormat.format templates to generate output.
 
Constructor Summary
Servlet()
          Deprecated.  
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated. process the request, regardless of submission method.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated.  
protected static String format(String key, Object[] args)
          Deprecated. format a string from the resource file.
protected  int getInitParameter(String key, int dflt)
          Deprecated. return dflt or init-param.
protected  String getInitParameter(String key, String dflt)
          Deprecated. return dflt or init-param.
 void init()
          Deprecated. read web.xml.
protected static void print(PrintWriter out, String key, Object[] args)
          Deprecated. print a formatted string from the resource file.
 
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

templates

public static final ResourceBundle templates
Deprecated. 
MessageFormat.format templates to generate output.


packagePattern

protected static final Pattern packagePattern
Deprecated. 
pattern to extract package path, if any, and public class name. This will fail if a dotted path contains whitespace or comments.


appletPattern

protected String appletPattern
Deprecated. 
pattern to validate applet value.


appletPrefix

protected String appletPrefix
Deprecated. 
prepended to applet value to create path to jar.


appletJar

protected String appletJar
Deprecated. 
jar from which applet jar is created.


appletSource

protected String appletSource
Deprecated. 
source file for applet.


servletDirname

protected String servletDirname
Deprecated. 
servlet's context path.


servletBasename

protected String servletBasename
Deprecated. 
servlet's name.


javac

protected String javac
Deprecated. 
paths to javac, jar, and rm.


jar

protected String jar
Deprecated. 
paths to javac, jar, and rm.


rm

protected String rm
Deprecated. 
paths to javac, jar, and rm.


expire

protected int expire
Deprecated. 
expiration intervall for archive in milliseconds.


sourceOption

protected String sourceOption
Deprecated. 
options to crosscompile (e.g., for MSIE to 1.3).


bootclasspath

protected String bootclasspath
Deprecated. 
options to crosscompile (e.g., for MSIE to 1.3).


extdirs

protected String extdirs
Deprecated. 
options to crosscompile (e.g., for MSIE to 1.3).

Constructor Detail

Servlet

public Servlet()
Deprecated. 
Method Detail

init

public void init()
Deprecated. 
read web.xml.

Overrides:
init in class javax.servlet.GenericServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws IOException,
                   javax.servlet.ServletException
Deprecated. 
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
IOException
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws IOException,
                  javax.servlet.ServletException
Deprecated. 
process the request, regardless of submission method. Replies with report or request page, compilation report, or applet page.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
IOException
javax.servlet.ServletException

getInitParameter

protected int getInitParameter(String key,
                               int dflt)
Deprecated. 
return dflt or init-param.


getInitParameter

protected String getInitParameter(String key,
                                  String dflt)
Deprecated. 
return dflt or init-param.


format

protected static String format(String key,
                               Object[] args)
Deprecated. 
format a string from the resource file.

Parameters:
args - can be null if none.

print

protected static void print(PrintWriter out,
                            String key,
                            Object[] args)
Deprecated. 
print a formatted string from the resource file.

Parameters:
args - can be null if none.