Package tenapull.data.entity.response
Class NessusResponseWithTimestamp<RES extends NessusResponseWithTimestamp<RES>>
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.GeneratedIdPojo
tenapull.data.entity.response.NessusResponseWithTimestamp<RES>
- Type Parameters:
RES
- the nessus response type implementing NessusResponseWithTimestamp
- All Implemented Interfaces:
NessusResponse<RES>
,DbPojo
- Direct Known Subclasses:
IndexResponse
@MappedSuperclass public abstract class NessusResponseWithTimestamp<RES extends NessusResponseWithTimestamp<RES>> extends GeneratedIdPojo implements NessusResponse<RES>
Abstract implementation of the NessusResponse interface, which uses the timestamp
provided by the Nessus API
-
Nested Class Summary
Nested classes/interfaces inherited from interface tenapull.data.entity.response.NessusResponse
NessusResponse.MultiChildTemplate<POJO extends NessusResponse.MultiChildTemplate<POJO,R>,R extends NessusResponse>, NessusResponse.ResponseChild<POJO extends NessusResponse.ResponseChild<POJO,R>,R extends NessusResponse>, NessusResponse.SingleChildTemplate<POJO extends NessusResponse.SingleChildTemplate<POJO,R>,R extends NessusResponse>
-
Constructor Summary
Constructors Constructor Description NessusResponseWithTimestamp()
-
Method Summary
Modifier and Type Method Description java.sql.Timestamp
getTimestamp()
Gets timestamp.abstract java.lang.String
getUrlPath()
Gets url path for the Nessus APIvoid
setTimestamp(java.sql.Timestamp timestamp)
Sets the TimestampMethods inherited from class tenapull.data.entity.template.GeneratedIdPojo
__set, equals, getId, hashCode, setId
Methods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, setExtraJson, toJsonNode, toJsonString, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface tenapull.data.entity.template.DbPojo
_prepare, getId, setId, toJsonNode, toJsonString
-
Constructor Details
-
NessusResponseWithTimestamp
public NessusResponseWithTimestamp()
-
-
Method Details
-
getUrlPath
public abstract java.lang.String getUrlPath()Description copied from interface:NessusResponse
Gets url path for the Nessus API- Specified by:
getUrlPath
in interfaceNessusResponse<RES extends NessusResponseWithTimestamp<RES>>
- Returns:
- the url path
-
getTimestamp
public java.sql.Timestamp getTimestamp()Description copied from interface:NessusResponse
Gets timestamp. This may be the one provided by the Nessus API, or one generated by this application, depending on the nature of the Nessus API response- Specified by:
getTimestamp
in interfaceNessusResponse<RES extends NessusResponseWithTimestamp<RES>>
- Returns:
- the timestamp
-
setTimestamp
public void setTimestamp(java.sql.Timestamp timestamp)Description copied from interface:NessusResponse
Sets the Timestamp- Specified by:
setTimestamp
in interfaceNessusResponse<RES extends NessusResponseWithTimestamp<RES>>
- Parameters:
timestamp
- the timestamp
-