Note
Must be run unpacked somewhere in the filesystem. Any initParameter that starts with ENV_ is used to set an environment variable with the name stripped of the leading ENV_ and using the init parameter value.
| Modifier and Type | Class and Description |
|---|---|
| private static class | CGI.
private utility class that manages the Environment passed to exec. |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private File | |
| private CGI. | |
| private boolean | |
| private boolean | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private String | Returns: the line of textthe input stream is)Utility method to get a line of text from the input stream. |
| public void | init()
Overrides javax. super.init(config).
|
| public void | service(HttpServletRequest
the req, HttpServletResponse HttpServletRequest object that
contains the request the client made of
the servletthe res)HttpServletResponse object that
contains the response the servlet returns
to the clientOverrides javax. service method and dispatches
them to the doXXX methods defined in
this class.
|
| _cmdPrefix | back to summary |
|---|---|
| private String _cmdPrefix | |
| _docRoot | back to summary |
|---|---|
| private File _docRoot | |
| _env | back to summary |
|---|---|
| private CGI. | |
| _ignoreExitState | back to summary |
|---|---|
| private boolean _ignoreExitState | |
| _ok | back to summary |
|---|---|
| private boolean _ok | |
| _path | back to summary |
|---|---|
| private String _path | |
| CGI | back to summary |
|---|---|
| public CGI() | |
| exec | back to summary |
|---|---|
| private void exec(File command, String pathInfo, HttpServletRequest req, HttpServletResponse res) throws IOException | |
| getTextLineFromStream | back to summary |
|---|---|
| private String getTextLineFromStream(InputStream is) throws IOException Utility method to get a line of text from the input stream.
| |
| init | back to summary |
|---|---|
| public void init() throws ServletException Overrides javax. Doc from javax. A convenience method which can be overridden so that there's no need
to call Instead of overriding
| |
| service | back to summary |
|---|---|
| public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException Overrides javax. Doc from javax. Receives standard HTTP requests from the public
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| envMap | back to summary |
|---|---|
| private Map<K, V> envMap | |
| EnvList | back to summary |
|---|---|
| pack-priv EnvList() | |
| EnvList | back to summary |
|---|---|
| pack-priv EnvList(CGI. | |
| getEnvArray | back to summary |
|---|---|
| public String[] getEnvArray() Get representation suitable for passing to exec. | |
| set | back to summary |
|---|---|
| public void set(String name, String value) Set a name/value pair, null values will be treated as an empty String | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |