Class BrowserReport
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.system.BrowserReport
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,RemoteAddressBean
,Cacheable
A bean to store Reporting API payloads.
- Since:
- 12.0
- Version:
- 12.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
Returns the report body.int
getBuild()
Returns the build numebr.Returns the creation date of this Report.Returns the triggered CSP directive.getHost()
Returns the blocked host name.Returns the remote IP address.Returns the remote host name.getType()
Returns the report type.getURL()
Returns the URL of the report violation.void
Updates the report body.void
setCreatedOn
(Instant dt) Updates the creation date of this Report.void
Updates the triggered CSP directive.void
Updates the blocked host name.void
setRemoteAddress
(String addr, String host) Updates the remote address that sumbitted this report.void
Updates the URL of the report violation.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.RemoteAddressBean
getIsResolved
-
Constructor Details
-
BrowserReport
Creates the bean.- Parameters:
build
- the build numbertype
- the report type
-
-
Method Details
-
getType
-
getBuild
public int getBuild()Returns the build numebr.- Returns:
- the build
-
getCreatedOn
Returns the creation date of this Report.- Returns:
- the creation date/time
-
getDirective
-
getURL
-
getHost
-
getBody
-
getRemoteAddr
Description copied from interface:RemoteAddressBean
Returns the remote IP address.- Specified by:
getRemoteAddr
in interfaceRemoteAddressBean
- Returns:
- an IPv4 or IPv6 address
-
getRemoteHost
Description copied from interface:RemoteAddressBean
Returns the remote host name.- Specified by:
getRemoteHost
in interfaceRemoteAddressBean
- Returns:
- the host name, or address if unresolved
-
setCreatedOn
Updates the creation date of this Report.- Parameters:
dt
- the creation date/time
-
setHost
-
setDirective
Updates the triggered CSP directive.- Parameters:
d
- the directive name
-
setURL
-
setBody
-
setRemoteAddress
-