jdk/src/solaris/bin/java-rmi.cgi.sh
author mikejwre
Thu, 03 Dec 2009 12:52:46 -0800
changeset 4400 6f7b7cb74a72
parent 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
Added tag jdk7-b77 for changeset a9713976af74
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#!/bin/sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
# Copyright 1996 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
# have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
# This script executes the Java interpreter, defines properties
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
# that correspond to the CGI 1.0 environment variables, and executes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
# the class "sun.rmi.transport.proxy.CGIHandler".  It should be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
# installed in the directory to which the HTTP server maps the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
# URL path "/cgi-bin".
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
# (Configuration is necessary as noted below.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
# This class will support a QUERY_STRING of the form "forward=<port>"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
# with a REQUEST_METHOD "POST".  The body of the request will be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
# forwarded (as another POST request) to the server listening on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
# specified port (must be >= 1024).  The response from this forwarded
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
# request will be the response to the original request.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
# CONFIGURATION:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
# Fill in correct absolute path to Java interpreter below.  For example,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
# the "PATH=" line might be changed to the follow if the JDK is installed
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
# at the path "/home/peter/java":
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
# PATH=/home/peter/java/bin:$PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
PATH=/usr/local/java/bin:$PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
exec java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
	-DAUTH_TYPE="$AUTH_TYPE" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
	-DCONTENT_LENGTH="$CONTENT_LENGTH" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
	-DCONTENT_TYPE="$CONTENT_TYPE" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
	-DGATEWAY_INTERFACE="$GATEWAY_INTERFACE" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
	-DHTTP_ACCEPT="$HTTP_ACCEPT" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
	-DPATH_INFO="$PATH_INFO" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
	-DPATH_TRANSLATED="$PATH_TRANSLATED" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
	-DQUERY_STRING="$QUERY_STRING" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
	-DREMOTE_ADDR="$REMOTE_ADDR" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
	-DREMOTE_HOST="$REMOTE_HOST" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
	-DREMOTE_IDENT="$REMOTE_IDENT" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
	-DREMOTE_USER="$REMOTE_USER" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
	-DREQUEST_METHOD="$REQUEST_METHOD" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
	-DSCRIPT_NAME="$SCRIPT_NAME" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
	-DSERVER_NAME="$SERVER_NAME" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
	-DSERVER_PORT="$SERVER_PORT" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
	-DSERVER_PROTOCOL="$SERVER_PROTOCOL" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
	-DSERVER_SOFTWARE="$SERVER_SOFTWARE" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
	sun.rmi.transport.proxy.CGIHandler