|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.web.header.writers.XXssProtectionHeaderWriter
public final class XXssProtectionHeaderWriter
Renders the X-XSS-Protection header.
Constructor Summary | |
---|---|
XXssProtectionHeaderWriter()
Create a new instance |
Method Summary | |
---|---|
void |
setBlock(boolean block)
If false, will not specify the mode as blocked. |
void |
setEnabled(boolean enabled)
If true, will contain a value of 1. |
String |
toString()
|
void |
writeHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a Header instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XXssProtectionHeaderWriter()
Method Detail |
---|
public void writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
HeaderWriter
Header
instance.
writeHeaders
in interface HeaderWriter
request
- the requestresponse
- the responsepublic void setEnabled(boolean enabled)
X-XSS-Protection: 1or if
setBlock(boolean)
is true
X-XSS-Protection: 1; mode=blockIf false, will explicitly disable specify that X-XSS-Protection is disabled. For example:
X-XSS-Protection: 0
enabled
- the new valuepublic void setBlock(boolean block)
enabled
- the new valuepublic String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |