public abstract class BaseServletHandler extends Object implements ServletHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
PARAMETERS_NAME |
protected static String |
UTF8_KEY |
protected org.apache.velocity.app.VelocityEngine |
ve |
| 构造器和说明 |
|---|
BaseServletHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
buildExceptionStack(Throwable e) |
protected void |
dispatchRequest(String url,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected com.fasterxml.jackson.databind.ObjectMapper |
getObjectJsonMapper() |
void |
init() |
protected void |
initContext(javax.servlet.http.HttpServletRequest req) |
protected void |
invokeMethod(String methodName,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected String |
retriveMethod(javax.servlet.http.HttpServletRequest req) |
protected void |
writeObjectToJson(javax.servlet.http.HttpServletResponse resp,
Object obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, urlpublic void init()
init 在接口中 ServletHandlerprotected com.fasterxml.jackson.databind.ObjectMapper getObjectJsonMapper()
protected void dispatchRequest(String url, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws Exception
Exceptionprotected void invokeMethod(String methodName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws Exception
Exceptionprotected void writeObjectToJson(javax.servlet.http.HttpServletResponse resp,
Object obj)
throws javax.servlet.ServletException,
IOException
javax.servlet.ServletExceptionIOExceptionprotected String retriveMethod(javax.servlet.http.HttpServletRequest req) throws javax.servlet.ServletException
javax.servlet.ServletExceptionprotected void initContext(javax.servlet.http.HttpServletRequest req)
Copyright © 2023 Bstek. All rights reserved.