Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/solaris/bin/java-rmi.cgi.sh
32285 views
#!/bin/sh12#3# Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved.4# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.5#6# This code is free software; you can redistribute it and/or modify it7# under the terms of the GNU General Public License version 2 only, as8# published by the Free Software Foundation. Oracle designates this9# particular file as subject to the "Classpath" exception as provided10# by Oracle in the LICENSE file that accompanied this code.11#12# This code is distributed in the hope that it will be useful, but WITHOUT13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or14# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License15# version 2 for more details (a copy is included in the LICENSE file that16# accompanied this code).17#18# You should have received a copy of the GNU General Public License version19# 2 along with this work; if not, write to the Free Software Foundation,20# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.21#22# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA23# or visit www.oracle.com if you need additional information or have any24# questions.25#2627#28#2930#31# This script executes the Java interpreter, defines properties32# that correspond to the CGI 1.0 environment variables, and executes33# the class "sun.rmi.transport.proxy.CGIHandler". It should be34# installed in the directory to which the HTTP server maps the35# URL path "/cgi-bin".36#37# (Configuration is necessary as noted below.)38#39# This class will support a QUERY_STRING of the form "forward=<port>"40# with a REQUEST_METHOD "POST". The body of the request will be41# forwarded (as another POST request) to the server listening on the42# specified port (must be >= 1024). The response from this forwarded43# request will be the response to the original request.44#45# CONFIGURATION:46#47# Fill in correct absolute path to Java interpreter below. For example,48# the "PATH=" line might be changed to the follow if the JDK is installed49# at the path "/home/peter/java":50#51# PATH=/home/peter/java/bin:$PATH52#53PATH=/usr/local/java/bin:$PATH54exec java \55-DAUTH_TYPE="$AUTH_TYPE" \56-DCONTENT_LENGTH="$CONTENT_LENGTH" \57-DCONTENT_TYPE="$CONTENT_TYPE" \58-DGATEWAY_INTERFACE="$GATEWAY_INTERFACE" \59-DHTTP_ACCEPT="$HTTP_ACCEPT" \60-DPATH_INFO="$PATH_INFO" \61-DPATH_TRANSLATED="$PATH_TRANSLATED" \62-DQUERY_STRING="$QUERY_STRING" \63-DREMOTE_ADDR="$REMOTE_ADDR" \64-DREMOTE_HOST="$REMOTE_HOST" \65-DREMOTE_IDENT="$REMOTE_IDENT" \66-DREMOTE_USER="$REMOTE_USER" \67-DREQUEST_METHOD="$REQUEST_METHOD" \68-DSCRIPT_NAME="$SCRIPT_NAME" \69-DSERVER_NAME="$SERVER_NAME" \70-DSERVER_PORT="$SERVER_PORT" \71-DSERVER_PROTOCOL="$SERVER_PROTOCOL" \72-DSERVER_SOFTWARE="$SERVER_SOFTWARE" \73sun.rmi.transport.proxy.CGIHandler747576