Package tenapull.data.entity.response
Interface NessusResponse<RES extends NessusResponse<RES>>
- Type Parameters:
RES
- the Response type implementing NessusResponse
- All Superinterfaces:
DbPojo
- All Known Implementing Classes:
IndexResponse
,NessusResponseGenerateTimestamp
,NessusResponseWithTimestamp
,ScanHostResponse
,ScanResponse
@MappedSuperclass public interface NessusResponse<RES extends NessusResponse<RES>> extends DbPojo
Interface representing a response from the Nessus API, with some utility abstract classes
that can be implemented by nested objects within a response, in order to link those
objects to the parent response entity
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NessusResponse.MultiChildTemplate<POJO extends NessusResponse.MultiChildTemplate<POJO,R>,R extends NessusResponse>
Represents a nested entity with a Many-to-one relationship with the responsestatic interface
NessusResponse.ResponseChild<POJO extends NessusResponse.ResponseChild<POJO,R>,R extends NessusResponse>
The interface Response child, which can be implemented by any nested child entities within the parent responsestatic class
NessusResponse.SingleChildTemplate<POJO extends NessusResponse.SingleChildTemplate<POJO,R>,R extends NessusResponse>
Represents a nested entity with a one-to-one relationship with the response -
Method Summary
Modifier and Type Method Description java.sql.Timestamp
getTimestamp()
Gets timestamp.java.lang.String
getUrlPath()
Gets url path for the Nessus APIvoid
setTimestamp(java.sql.Timestamp timestamp)
Sets the TimestampMethods inherited from interface tenapull.data.entity.template.DbPojo
_prepare, getId, setId, toJsonNode, toJsonString
-
Method Details
-
getUrlPath
java.lang.String getUrlPath()Gets url path for the Nessus API- Returns:
- the url path
-
getTimestamp
java.sql.Timestamp getTimestamp()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- Returns:
- the timestamp
-
setTimestamp
void setTimestamp(java.sql.Timestamp timestamp)Sets the Timestamp- Parameters:
timestamp
- the timestamp
-