source: trunk/openjdk/jdk/src/solaris/bin/java-rmi.cgi.sh

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 2.7 KB
Line 
1#!/bin/sh
2
3#
4# Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved.
5# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6#
7# This code is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License version 2 only, as
9# published by the Free Software Foundation. Oracle designates this
10# particular file as subject to the "Classpath" exception as provided
11# by Oracle in the LICENSE file that accompanied this code.
12#
13# This code is distributed in the hope that it will be useful, but WITHOUT
14# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16# version 2 for more details (a copy is included in the LICENSE file that
17# accompanied this code).
18#
19# You should have received a copy of the GNU General Public License version
20# 2 along with this work; if not, write to the Free Software Foundation,
21# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22#
23# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
24# or visit www.oracle.com if you need additional information or have any
25# questions.
26#
27
28#
29# This script executes the Java interpreter, defines properties
30# that correspond to the CGI 1.0 environment variables, and executes
31# the class "sun.rmi.transport.proxy.CGIHandler". It should be
32# installed in the directory to which the HTTP server maps the
33# URL path "/cgi-bin".
34#
35# (Configuration is necessary as noted below.)
36#
37# This class will support a QUERY_STRING of the form "forward=<port>"
38# with a REQUEST_METHOD "POST". The body of the request will be
39# forwarded (as another POST request) to the server listening on the
40# specified port (must be >= 1024). The response from this forwarded
41# request will be the response to the original request.
42#
43# CONFIGURATION:
44#
45# Fill in correct absolute path to Java interpreter below. For example,
46# the "PATH=" line might be changed to the follow if the JDK is installed
47# at the path "/home/peter/java":
48#
49# PATH=/home/peter/java/bin:$PATH
50#
51PATH=/usr/local/java/bin:$PATH
52exec java \
53 -DAUTH_TYPE="$AUTH_TYPE" \
54 -DCONTENT_LENGTH="$CONTENT_LENGTH" \
55 -DCONTENT_TYPE="$CONTENT_TYPE" \
56 -DGATEWAY_INTERFACE="$GATEWAY_INTERFACE" \
57 -DHTTP_ACCEPT="$HTTP_ACCEPT" \
58 -DPATH_INFO="$PATH_INFO" \
59 -DPATH_TRANSLATED="$PATH_TRANSLATED" \
60 -DQUERY_STRING="$QUERY_STRING" \
61 -DREMOTE_ADDR="$REMOTE_ADDR" \
62 -DREMOTE_HOST="$REMOTE_HOST" \
63 -DREMOTE_IDENT="$REMOTE_IDENT" \
64 -DREMOTE_USER="$REMOTE_USER" \
65 -DREQUEST_METHOD="$REQUEST_METHOD" \
66 -DSCRIPT_NAME="$SCRIPT_NAME" \
67 -DSERVER_NAME="$SERVER_NAME" \
68 -DSERVER_PORT="$SERVER_PORT" \
69 -DSERVER_PROTOCOL="$SERVER_PROTOCOL" \
70 -DSERVER_SOFTWARE="$SERVER_SOFTWARE" \
71 sun.rmi.transport.proxy.CGIHandler
Note: See TracBrowser for help on using the repository browser.