|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object php.java.servlet.PhpCGIFilter
public class PhpCGIFilter
Handles /foo/bar.php/baz?param=value requests.
Since the servlet spec doesn't allow <url-pattern>*.php*</url-pattern>, this filter searches for an embedded PHP_SUFFIX and forwards to the PhpCGIServlet.
To enable this filter add
<filter>
<filter-name>PhpCGIFilter</filter-name>
<filter-class>php.java.servlet.PhpCGIFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>PhpCGIFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
FastCGIServlet
Field Summary | |
---|---|
static java.lang.String |
PHP_SUFFIX
The default suffix to search for. |
Constructor Summary | |
---|---|
PhpCGIFilter()
|
Method Summary | |
---|---|
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
java.lang.String |
getPhpSuffix()
Return the PHP_SUFFIX. |
void |
init(javax.servlet.FilterConfig config)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PHP_SUFFIX
Constructor Detail |
---|
public PhpCGIFilter()
Method Detail |
---|
public java.lang.String getPhpSuffix()
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |