|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.soybeanMilk.web.servlet.DispatchServlet
public class DispatchServlet
框架整合servlet,它可以将WEB请求转给WEB执行器
| 构造方法摘要 | |
|---|---|
DispatchServlet()
|
|
| 方法摘要 | |
|---|---|
void |
destroy()
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doProcess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
处理WEB请求 |
protected ResolverFactory |
findExternalResolverFactory()
查找应用的外部解决对象工厂 |
java.lang.String |
getAppExecutorKey()
|
java.lang.String |
getEncoding()
|
WebExecutor |
getWebExecutor()
|
void |
init()
|
protected void |
initAppExecutorKey()
初始化执行器在应用中的存储关键字 |
protected void |
initEncoding()
初始化框架编码 如果你配置了 WebConstants.ServletInitParams#ENCODING参数,框架将使用这个编码,
否则,将使用WebConstants.DEFAULT_ENCODING定义的编码 |
protected void |
initWebExecutor()
初始化 WEB执行器对象。 |
| 从类 javax.servlet.http.HttpServlet 继承的方法 |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| 从类 javax.servlet.GenericServlet 继承的方法 |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public DispatchServlet()
| 方法详细信息 |
|---|
public WebExecutor getWebExecutor()
public java.lang.String getEncoding()
public java.lang.String getAppExecutorKey()
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.http.HttpServlet 中的 doGetjavax.servlet.ServletException
java.io.IOException
protected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
javax.servlet.http.HttpServlet 中的 doPostjavax.servlet.ServletException
java.io.IOExceptionpublic void destroy()
javax.servlet.Servlet 中的 destroyjavax.servlet.GenericServlet 中的 destroy
public void init()
throws javax.servlet.ServletException
javax.servlet.GenericServlet 中的 initjavax.servlet.ServletException
protected void doProcess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
request - response -
javax.servlet.ServletException
java.io.IOExceptionprotected void initEncoding()
WebConstants.ServletInitParams#ENCODING参数,框架将使用这个编码,
否则,将使用WebConstants.DEFAULT_ENCODING定义的编码
protected void initAppExecutorKey()
protected void initWebExecutor()
WEB执行器对象。
如果你配置了WebConstants.ServletInitParams#SOYBEAN_MILK_CONFIG参数,框架将使用它初始化,
否则,将使用WebConstants.DEFAULT_CONFIG_FILE。
它还会尝试从application作用域中查找标识为WebConstants.ServletInitParams#EXTERNAL_RESOLVER_FACTORY的外部解决对象工厂并加入框架。
protected ResolverFactory findExternalResolverFactory()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||