|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.weblayer.webcontext.basic.interceptor.ResponseHeaderSecurityFilter
public class ResponseHeaderSecurityFilter
过滤header中的crlf,将status message用HTML entities转义,限制cookie的总大小。
| 字段摘要 | |
|---|---|
static org.tinygroup.commons.tools.HumanReadableSize |
MAX_SET_COOKIE_SIZE_DEFAULT
|
| 构造方法摘要 | |
|---|---|
ResponseHeaderSecurityFilter()
|
|
ResponseHeaderSecurityFilter(javax.servlet.http.HttpServletRequest request)
|
|
| 方法摘要 | |
|---|---|
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)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
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()
WebContextLifecycleInterceptor 中的 preparepublic void commitHeaders()
WebContextLifecycleInterceptor 中的 commitHeaderspublic void commit()
WebContextLifecycleInterceptor 中的 commitpublic String checkHeaderName(String name)
HeaderNameInterceptor 复制的描述
HeaderNameInterceptor 中的 checkHeaderNamenull则丢弃header。
public String checkHeaderValue(String name,
String value)
HeaderValueInterceptor 复制的描述
HeaderValueInterceptor 中的 checkHeaderValuenull则表示拒绝该header的值。public javax.servlet.http.Cookie checkCookie(javax.servlet.http.Cookie cookie)
CookieInterceptor 复制的描述
CookieInterceptor 中的 checkCookienull则表示拒绝该cookie。 特别支持
CookieSupport类。
public String checkCookieHeaderValue(String name,
String value,
boolean setHeader)
CookieHeaderValueInterceptor 复制的描述
CookieHeaderValueInterceptor 中的 checkCookieHeaderValuenull则表示拒绝该cookie。
public String checkStatusMessage(int sc,
String msg)
StatusMessageInterceptor 复制的描述
StatusMessageInterceptor 中的 checkStatusMessagenull则表示不设置status消息。public String checkRedirectLocation(String location)
RedirectLocationInterceptor 复制的描述
RedirectLocationInterceptor 中的 checkRedirectLocationnull则表示拒绝该location。
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||