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.intgetBuild()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.voidUpdates the report body.voidsetCreatedOn(Instant dt) Updates the creation date of this Report.voidUpdates the triggered CSP directive.voidUpdates the blocked host name.voidsetRemoteAddress(String addr, String host) Updates the remote address that sumbitted this report.voidUpdates the URL of the report violation.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:RemoteAddressBeanReturns the remote IP address.- Specified by:
getRemoteAddrin interfaceRemoteAddressBean- Returns:
- an IPv4 or IPv6 address
-
getRemoteHost
Description copied from interface:RemoteAddressBeanReturns the remote host name.- Specified by:
getRemoteHostin 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
-