public class XServletFilterSecurityXFrameOptions extends Object implements IXServletLowLevelFilter
| Constructor and Description |
|---|
XServletFilterSecurityXFrameOptions(com.helger.servlet.response.EXFrameOptionType eType,
com.helger.commons.url.ISimpleURL aDomain)
The X-Frame-Options HTTP response header can be used to indicate whether or
not a browser should be allowed to render a page in a <frame>,
<iframe> or <object> .
|
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EContinue |
beforeRequest(javax.servlet.http.HttpServletRequest aHttpRequest,
javax.servlet.http.HttpServletResponse aHttpResponse,
com.helger.http.EHttpVersion eHttpVersion,
com.helger.commons.http.EHttpMethod eHttpMethod)
Invoked before an XServlet request is handled.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterRequestpublic XServletFilterSecurityXFrameOptions(@Nonnull com.helger.servlet.response.EXFrameOptionType eType, @Nullable com.helger.commons.url.ISimpleURL aDomain)
X-Frame-Options: DENY X-Frame-Options: SAMEORIGIN X-Frame-Options: ALLOW-FROM https://example.com/
eType - The X-Frame-Options type to be set. May not be null.aDomain - The domain URL to be used in "ALLOW-FROM". May be null
for the other cases.@Nonnull public com.helger.commons.state.EContinue beforeRequest(@Nonnull javax.servlet.http.HttpServletRequest aHttpRequest, @Nonnull javax.servlet.http.HttpServletResponse aHttpResponse, @Nonnull com.helger.http.EHttpVersion eHttpVersion, @Nonnull com.helger.commons.http.EHttpMethod eHttpMethod)
IXServletLowLevelFilterbeforeRequest in interface IXServletLowLevelFilteraHttpRequest - HTTP servlet request. Never null.aHttpResponse - HTTP servlet response. Never null.eHttpVersion - HTTP version. Never null.eHttpMethod - HTTP method. Never null.EContinue.CONTINUE to continue processing, or
EContinue.BREAK if this request should not be processed, in
which case the HttpServletResponse must contain a valid response!Copyright © 2017–2019 Philip Helger. All rights reserved.