com.easyjf.web
Class RequestProcessor

java.lang.Object
  extended bycom.easyjf.web.RequestProcessor

public class RequestProcessor
extends java.lang.Object

Title:框架核心处理器

Description:EasyJWeb框架的中心处理器,由ActionServlet调用,然后调用相应的Action并返回用户服务

Copyright: Copyright (c) 2006

Company: www.easyjf.com

Version:
1.0
Author:
蔡世友

Constructor Summary
RequestProcessor(ActionServlet servlet)
           
 
Method Summary
 Page getResult(Module module, WebForm form, IWebAction action)
           
 org.apache.velocity.Template getTemplate(java.lang.String name, java.lang.String encoding)
           
 void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestProcessor

public RequestProcessor(ActionServlet servlet)
Method Detail

process

public void process(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

getResult

public Page getResult(Module module,
                      WebForm form,
                      IWebAction action)
               throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

getTemplate

public org.apache.velocity.Template getTemplate(java.lang.String name,
                                                java.lang.String encoding)
                                         throws org.apache.velocity.exception.ResourceNotFoundException,
                                                org.apache.velocity.exception.ParseErrorException,
                                                org.apache.velocity.exception.MethodInvocationException,
                                                java.lang.Exception
Throws:
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
java.lang.Exception