Package tenapull.data.entity.response
Class NessusResponseGenerateTimestamp<RES extends NessusResponseGenerateTimestamp<RES>>
java.lang.Object
tenapull.data.entity.template.ExtensibleJsonPojo
tenapull.data.entity.template.NaturalIdPojo
tenapull.data.entity.response.NessusResponseGenerateTimestamp<RES>
- Type Parameters:
RES- the nessus response type implementing NessusResponseGenerateTimestamp
- All Implemented Interfaces:
NessusResponse<RES>,DbPojo
- Direct Known Subclasses:
ScanHostResponse,ScanResponse
@MappedSuperclass public abstract class NessusResponseGenerateTimestamp<RES extends NessusResponseGenerateTimestamp<RES>> extends NaturalIdPojo implements NessusResponse<RES>
Abstract implementation of the NessusResponse interface, which generates a timestamp at the time
of instantiation, because the Nessus API does not provide a timestamp.
-
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 NessusResponseGenerateTimestamp() -
Method Summary
Modifier and Type Method Description java.sql.TimestampgetTimestamp()Gets timestamp.abstract java.lang.StringgetUrlPath()Gets url path for the Nessus APIvoidsetTimestamp(java.sql.Timestamp timestamp)Sets the TimestampMethods inherited from class tenapull.data.entity.template.NaturalIdPojo
__set, equals, getId, hashCode, setIdMethods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
__prepare, getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, setExtraJson, toJsonNode, toJsonString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tenapull.data.entity.template.DbPojo
_prepare, getId, setId, toJsonNode, toJsonString
-
Constructor Details
-
NessusResponseGenerateTimestamp
public NessusResponseGenerateTimestamp()
-
-
Method Details
-
getUrlPath
public abstract java.lang.String getUrlPath()Description copied from interface:NessusResponseGets url path for the Nessus API- Specified by:
getUrlPathin interfaceNessusResponse<RES extends NessusResponseGenerateTimestamp<RES>>- Returns:
- the url path
-
getTimestamp
public java.sql.Timestamp getTimestamp()Description copied from interface:NessusResponseGets 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:
getTimestampin interfaceNessusResponse<RES extends NessusResponseGenerateTimestamp<RES>>- Returns:
- the timestamp
-
setTimestamp
public void setTimestamp(java.sql.Timestamp timestamp)Description copied from interface:NessusResponseSets the Timestamp- Specified by:
setTimestampin interfaceNessusResponse<RES extends NessusResponseGenerateTimestamp<RES>>- Parameters:
timestamp- the timestamp
-