Class ContentSecurityPolicyReportServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sf.basedb.clients.web.servlet.ContentSecurityPolicyReportServlet
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public final class ContentSecurityPolicyReportServlet extends HttpServlet
This is a servlet for posting reports from "Content-Security-Policy" violations.
- Since:
- 3.3
- Author:
- Nicklas
- See Also:
ContentSecurityPolicyFilter
, Serialized Form- Last modified
- $Date$
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
log
private static int
MAX_REPORT_LENGTH
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ContentSecurityPolicyReportServlet()
-
Method Summary
Modifier and Type Method Description protected void
doPost(HttpServletRequest request, HttpServletResponse response)
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
MAX_REPORT_LENGTH
private static final int MAX_REPORT_LENGTH- See Also:
- Constant Field Values
-
log
private static final org.slf4j.Logger log
-
-
Constructor Details
-
ContentSecurityPolicyReportServlet
public ContentSecurityPolicyReportServlet()
-
-
Method Details
-
doPost
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException- Overrides:
doPost
in classHttpServlet
- Throws:
ServletException
IOException
-