com.alibaba.druid.support.http
Class StatViewServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.alibaba.druid.support.http.StatViewServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class StatViewServlet
- extends javax.servlet.http.HttpServlet
注意:避免直接调用Druid相关对象例如DruidDataSource等,相关调用要到DruidStatManagerFacade里用反射实现
- Author:
- sandzhang
- See Also:
- Serialized Form
| Methods inherited from class javax.servlet.http.HttpServlet |
service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
PARAM_NAME_RESET_ENABLE
public static final String PARAM_NAME_RESET_ENABLE
- See Also:
- Constant Field Values
PARAM_NAME_ALLOW
public static final String PARAM_NAME_ALLOW
- See Also:
- Constant Field Values
PARAM_NAME_DENY
public static final String PARAM_NAME_DENY
- See Also:
- Constant Field Values
PARAM_NAME_USERNAME
public static final String PARAM_NAME_USERNAME
- See Also:
- Constant Field Values
PARAM_NAME_PASSWORD
public static final String PARAM_NAME_PASSWORD
- See Also:
- Constant Field Values
SESSION_USER_KEY
public static final String SESSION_USER_KEY
- See Also:
- Constant Field Values
templatePage
public String templatePage
StatViewServlet
public StatViewServlet()
init
public void init()
throws javax.servlet.ServletException
- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
isRequireAuth
public boolean isRequireAuth()
isPermittedRequest
public boolean isPermittedRequest(javax.servlet.http.HttpServletRequest request)
isPermittedRequest
public boolean isPermittedRequest(String remoteAddress)
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Overrides:
service in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
Copyright © 2012 Alibaba Group. All Rights Reserved.