public class SupportServlet
extends javax.servlet.http.HttpServlet
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<IPRange> |
allowList |
protected String |
baseMapping |
protected List<IPRange> |
denyList |
protected String |
mappings |
static String |
PARAM_NAME_ALLOW |
static String |
PARAM_NAME_DENY |
static String |
PARAM_NAME_PASSWORD |
static String |
PARAM_NAME_USERNAME |
static String |
PARAM_REMOTE_ADDR |
protected String |
password |
protected String |
remoteAddressHeader |
protected String |
resourcePath |
static String |
SESSION_USER_KEY |
protected String |
username |
| 构造器和说明 |
|---|
SupportServlet(String resourcePath,
String mappings) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
ContainsUser(javax.servlet.http.HttpServletRequest request) |
protected String |
getFilePath(String fileName) |
protected String |
getRemoteAddress(javax.servlet.http.HttpServletRequest request) |
void |
init() |
protected void |
interpretation(String api,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isPermittedRequest(javax.servlet.http.HttpServletRequest request) |
boolean |
isPermittedRequest(String remoteAddress) |
boolean |
isRequireAuth() |
protected void |
returnResourceFile(String fileName,
String uri,
javax.servlet.http.HttpServletResponse response) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected String username
protected String password
protected final String resourcePath
protected String mappings
protected String remoteAddressHeader
protected String baseMapping
public void init()
throws javax.servlet.ServletException
init 在类中 javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service 在类中 javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic boolean isRequireAuth()
public boolean ContainsUser(javax.servlet.http.HttpServletRequest request)
protected void interpretation(String api, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionprotected void returnResourceFile(String fileName, String uri, javax.servlet.http.HttpServletResponse response) throws IOException
IOExceptionpublic boolean isPermittedRequest(String remoteAddress)
public boolean isPermittedRequest(javax.servlet.http.HttpServletRequest request)
protected String getRemoteAddress(javax.servlet.http.HttpServletRequest request)
Copyright © 2022. All rights reserved.