public class RequestHandler extends Object implements org.springframework.web.HttpRequestHandler, org.springframework.web.context.ServletContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
<servlet> <servlet-name>jfastcgi</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>jfastcgi</servlet-name> <url-pattern>*.php</url-pattern> </servlet-mapping>
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <value> /*/*.php=fastCGIRequestHandler </value> </property> </bean> <bean id="fastCGIRequestHandler" class="net.jr.fastcgi.spring.RequestHandler"> <property name="connectionFactory" ref="connectionFactory" /> </bean> <bean id="connectionFactory" class="net.jr.fastcgi.impl.SingleConnectionFactory"> <constructor-arg value="localhost:9763"/> </bean>
Constructor and Description |
---|
RequestHandler() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
ConnectionFactory |
getConnectionFactory() |
FastCGIHandler |
getFastCGIHandler() |
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setConnectionFactory(ConnectionFactory connectionFactory) |
void |
setFastCGIHandler(FastCGIHandler fastCGIHandler) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
handleRequest
in interface org.springframework.web.HttpRequestHandler
javax.servlet.ServletException
IOException
public FastCGIHandler getFastCGIHandler()
public void setFastCGIHandler(FastCGIHandler fastCGIHandler)
public ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory connectionFactory)
Copyright © 2009-2012 Julien Rialland, and the jFastCGI project developpers.. All Rights Reserved.