Class CSPViolations
java.lang.Object
org.deltava.beans.system.CSPViolations
- All Implemented Interfaces:
Comparable<CSPViolations>
A bean to store Content Security Policy violation data.
- Since:
- 12.0
- Version:
- 12.0
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a site URL.intcompareTo(CSPViolations cv2) intgetCount()Returns the number of violationsgetDate()Returns the violation date.getHost()Returns the offending host name.getType()Returns the CSP directive violated.getURLs()Returns the offending site URLsvoidsetCount(int cnt) Updates the violation count.voidUpdates the offending host name.
-
Constructor Details
-
CSPViolations
-
-
Method Details
-
getDate
-
getType
-
getCount
public int getCount()Returns the number of violations- Returns:
- the violation count
-
getHost
-
getURLs
-
addURL
Adds a site URL. THe protocol and host names will be stripped if present.- Parameters:
url- the URL
-
setHost
-
setCount
public void setCount(int cnt) Updates the violation count.- Parameters:
cnt- the violation count
-
compareTo
- Specified by:
compareToin interfaceComparable<CSPViolations>
-