Class QueryResponse
- java.lang.Object
-
- org.torproject.metrics.exonerator.QueryResponse
-
public class QueryResponse extends java.lang.ObjectQuery response from the ExoneraTor database.
-
-
Constructor Summary
Constructors Constructor Description QueryResponse()Constructor for Gson.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryResponsefromJson(java.io.Reader reader)Return QueryResponse parsed from the given input stream, ornullif something fails or an unrecognized version is found.static java.lang.StringtoJson(QueryResponse response)Return JSON string for given QueryResponse.
-
-
-
Method Detail
-
toJson
public static java.lang.String toJson(QueryResponse response) throws java.io.IOException
Return JSON string for given QueryResponse.- Throws:
java.io.IOException
-
fromJson
public static QueryResponse fromJson(java.io.Reader reader)
Return QueryResponse parsed from the given input stream, ornullif something fails or an unrecognized version is found.
-
-