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 DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateIDModifier and TypeMethodDescriptioncacheKey()Returns the cache key for this object.intbooleangetHexID()Returns the hexadecimal database ID of this object.intgetID()Returns the database ID of this object.inthashCode()voidsetID(int id) Update the database row ID of this bean.static voidvalidateID(int oldID, int newID) Validates a database ID.static voidvalidateID(int oldID, int newID, boolean allowZero) Validates a database ID.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RemoteAddressBean
getIsResolvedModifier and TypeMethodDescriptiondefault booleanReturns if the host name has been resolved.
-
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
-