org.tinygroup.weblayer.webcontext.basic.interceptor
public class ResponseHeaderSecurityFilter extends Object implements WebContextLifecycleInterceptor, HeaderNameInterceptor, HeaderValueInterceptor, CookieInterceptor, CookieHeaderValueInterceptor, StatusMessageInterceptor, RedirectLocationInterceptor
| Modifier and Type | Field and 描述 |
|---|---|
static org.tinygroup.commons.tools.HumanReadableSize |
MAX_SET_COOKIE_SIZE_DEFAULT |
| Constructor and 描述 |
|---|
ResponseHeaderSecurityFilter() |
ResponseHeaderSecurityFilter(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and 描述 |
|---|---|
javax.servlet.http.Cookie |
checkCookie(javax.servlet.http.Cookie cookie)
检查cookie。
|
String |
checkCookieHeaderValue(String name,
String value,
boolean setHeader)
检查cookie header。
|
String |
checkHeaderName(String name)
检查header名称。
|
String |
checkHeaderValue(String name,
String value)
检查header的值。
|
String |
checkRedirectLocation(String location)
检查重定向location。
|
String |
checkStatusMessage(int sc,
String msg)
检查status消息。
|
void |
commit() |
void |
commitHeaders() |
org.tinygroup.commons.tools.HumanReadableSize |
getMaxCookieSize() |
void |
prepare() |
void |
setMaxCookieSize(org.tinygroup.commons.tools.HumanReadableSize maxSetCookieSize) |
public static final org.tinygroup.commons.tools.HumanReadableSize MAX_SET_COOKIE_SIZE_DEFAULT
public ResponseHeaderSecurityFilter()
public ResponseHeaderSecurityFilter(javax.servlet.http.HttpServletRequest request)
public org.tinygroup.commons.tools.HumanReadableSize getMaxCookieSize()
public void setMaxCookieSize(org.tinygroup.commons.tools.HumanReadableSize maxSetCookieSize)
public void prepare()
prepare 接口 {1} 中的 {0} WebContextLifecycleInterceptorpublic void commitHeaders()
commitHeaders 接口 {1} 中的 {0} WebContextLifecycleInterceptorpublic void commit()
commit 接口 {1} 中的 {0} WebContextLifecycleInterceptorpublic String checkHeaderName(String name)
HeaderNameInterceptorcheckHeaderName 接口 {1} 中的 {0} HeaderNameInterceptornull则丢弃header。public String checkHeaderValue(String name, String value)
HeaderValueInterceptorcheckHeaderValue 接口 {1} 中的 {0} HeaderValueInterceptornull则表示拒绝该header的值。public javax.servlet.http.Cookie checkCookie(javax.servlet.http.Cookie cookie)
CookieInterceptorcheckCookie 接口 {1} 中的 {0} CookieInterceptornull则表示拒绝该cookie。 特别支持
CookieSupport类。public String checkCookieHeaderValue(String name, String value, boolean setHeader)
CookieHeaderValueInterceptorcheckCookieHeaderValue 接口 {1} 中的 {0} CookieHeaderValueInterceptornull则表示拒绝该cookie。public String checkStatusMessage(int sc, String msg)
StatusMessageInterceptorcheckStatusMessage 接口 {1} 中的 {0} StatusMessageInterceptornull则表示不设置status消息。public String checkRedirectLocation(String location)
RedirectLocationInterceptorcheckRedirectLocation 接口 {1} 中的 {0} RedirectLocationInterceptornull则表示拒绝该location。Copyright © 2006–2015 TinyGroup. All rights reserved.