public class FastCGIHandler extends Object
Constructor and Description |
---|
FastCGIHandler() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
finalize() |
ConnectionFactory |
getConnectionFactory() |
Process |
getProcess() |
Thread |
getProcessLogThread() |
protected boolean |
isHeaderFiltered(String header) |
boolean |
isKeepAlive() |
void |
service(RequestAdapter request,
ResponseAdapter response) |
void |
setConnectionFactory(ConnectionFactory connectionFactory) |
void |
setFilteredHeaders(String[] filteredHeaders)
Some http headers have sometimes to be filtered for security reasons, so this methods allows to tell
which http headers we do not want to pass to the fastcgi app.
|
void |
setKeepAlive(boolean keepAlive) |
void |
startProcess(String cmd) |
public ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory connectionFactory)
public void setFilteredHeaders(String[] filteredHeaders)
handler.setFilteredHeaders(new String[]{"Authorization"});
will remove all the HTTP_AUTHORIZATION headers from the transmitted requests.filteredHeaders
- an array of http header keys that will not be transmitted to
the fastcgi responder app.protected boolean isHeaderFiltered(String header)
header
- the name of a http header (case insensitive)public void startProcess(String cmd) throws IOException
IOException
protected void finalize() throws Throwable
public void service(RequestAdapter request, ResponseAdapter response) throws IOException
IOException
public void destroy()
public Process getProcess()
public Thread getProcessLogThread()
public boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
Copyright © 2009-2012 Julien Rialland, and the jFastCGI project developpers.. All Rights Reserved.