public class FastCGIProxyServlet extends AsyncProxyServlet.Transparent
AsyncProxyServlet.Transparent for FastCGI.
This servlet accepts a HTTP request and transforms it into a FastCGI request
that is sent to the FastCGI server specified in the proxyTo
init-param.
This servlet accepts two additional init-params:
scriptRoot, mandatory, that must be set to the directory where
the application that must be served via FastCGI is installed and corresponds to
the FastCGI DOCUMENT_ROOT parameterscriptPattern, optional, defaults to (.+?\.php),
that specifies a regular expression with at least 1 and at most 2 groups that specify
respectively:
fastCGI.HTTPS, optional, defaults to false, that specifies whether
to force the FastCGI HTTPS parameter to the value onTryFilesFilter,
Serialized FormAsyncProxyServlet.StreamReader, AsyncProxyServlet.StreamWriter, AsyncProxyServlet.TransparentProxyServlet.ProxyInputStreamContentProvider, ProxyServlet.ProxyResponseListenerAbstractProxyServlet.TransparentDelegate| Modifier and Type | Field and Description |
|---|---|
static String |
FASTCGI_HTTPS_INIT_PARAM |
static String |
ORIGINAL_QUERY_ATTRIBUTE_INIT_PARAM |
static String |
ORIGINAL_URI_ATTRIBUTE_INIT_PARAM |
static String |
SCRIPT_PATTERN_INIT_PARAM |
static String |
SCRIPT_ROOT_INIT_PARAM |
_log, CLIENT_REQUEST_ATTRIBUTE, HOP_HEADERS| Constructor and Description |
|---|
FastCGIProxyServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
customizeFastCGIHeaders(Request proxyRequest,
HttpFields fastCGIHeaders) |
void |
init() |
protected HttpClient |
newHttpClient() |
protected void |
sendProxyRequest(HttpServletRequest request,
HttpServletResponse proxyResponse,
Request proxyRequest) |
init, rewriteTargetnewReadListener, newWriteListener, onResponseContent, proxyRequestContentnewProxyResponseListener, onContinue, serviceaddProxyHeaders, addViaHeader, addXForwardedHeaders, copyRequestHeaders, createHttpClient, createLogger, destroy, expects100Continue, filterServerResponseHeader, findConnectionHeaders, getBlackListHosts, getHostHeader, getHttpClient, getRequestId, getTimeout, getViaHost, getWhiteListHosts, hasContent, onClientRequestFailure, onProxyResponseFailure, onProxyResponseSuccess, onProxyRewriteFailed, onServerResponseHeaders, sendProxyResponseError, setTimeout, validateDestinationdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, logpublic static final String SCRIPT_ROOT_INIT_PARAM
public static final String SCRIPT_PATTERN_INIT_PARAM
public static final String ORIGINAL_URI_ATTRIBUTE_INIT_PARAM
public static final String ORIGINAL_QUERY_ATTRIBUTE_INIT_PARAM
public static final String FASTCGI_HTTPS_INIT_PARAM
public void init()
throws ServletException
init in class AbstractProxyServletServletExceptionprotected HttpClient newHttpClient()
newHttpClient in class AbstractProxyServletprotected void sendProxyRequest(HttpServletRequest request, HttpServletResponse proxyResponse, Request proxyRequest)
sendProxyRequest in class AbstractProxyServletprotected void customizeFastCGIHeaders(Request proxyRequest, HttpFields fastCGIHeaders)
Copyright © 1995–2017 Webtide. All rights reserved.