public class ContentSecurityPolicyFilter extends HttpFilter
Content-Security-Policy
header with child-src
and frame-ancestors
attributes
reflecting the OSLC friend applications.Constructor and Description |
---|
ContentSecurityPolicyFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilter(HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
Processes this filter and either executes or blocks the chain.
|
destroy, doFilter, handleOslcError, init
protected void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException
HttpFilter
Subclasses may throw a OslcWebApplicationException
to report an OslcError
.
This filter will automatically serialize such error in the HTTP response.
doFilter
in class HttpFilter
request
- the request.response
- the response.chain
- the filter chain to process.IOException
- if an I/O error occurs.ServletException
- if the filter execution fails.