java.lang.Object
org.cruk.clarity.api.SavedQuerySummary
- All Implemented Interfaces:
Serializable
The summary of a result of running a saved query.
- Since:
- 2.34
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSavedQuerySummary(Linkable<SavedQuery> query, MediaType mediaType, long length) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlongGet the length in bytes of the response.GetGet the file the report was saved as.voidsetReportFile(File reportFile) Set the file the report was saved as.toString()Print the content type and length of the response.
-
Constructor Details
-
SavedQuerySummary
Constructor.- Parameters:
query- The query run.mediaType- The media type.length- The response size.
-
-
Method Details
-
getMediaType
Get- Returns:
-
getLength
public long getLength()Get the length in bytes of the response.- Returns:
- The response size.
-
getReportFile
Get the file the report was saved as.- Returns:
- The report file.
-
setReportFile
Set the file the report was saved as. Note that this is not populated by the API during the call. This is for client convenience if the report was written to a file and that is useful to record here. It is also never serialized.- Parameters:
reportFile- The report file.
-
toString
Print the content type and length of the response.
-