Interface RequestChecker
-
- All Known Implementing Classes:
AbstractRequestChecker,HttpHeaderRequestChecker,UrlRequestChecker
public interface RequestChecker请求合法性校验- Author:
- CofCool
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRequestChecker.Type参数携带方式
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheck(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)进行校验RequestChecker.TypegetType()参数携带方式
-
-
-
Method Detail
-
check
boolean check(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)进行校验- Parameters:
request- 请求response- 响应- Returns:
- 校验结果
- Throws:
ServiceException- 如果想返回校验失败原因, 可通过此异常进行处理
-
getType
RequestChecker.Type getType()
参数携带方式- Returns:
RequestChecker.Type
-
-