Class QueryResponse

java.lang.Object
org.torproject.metrics.exonerator.QueryResponse

public class QueryResponse
extends java.lang.Object
Query response from the ExoneraTor database.
  • Constructor Summary

    Constructors 
    Constructor Description
    QueryResponse()
    Constructor for Gson.
  • Method Summary

    Modifier and Type Method Description
    static QueryResponse fromJson​(java.io.Reader reader)
    Return QueryResponse parsed from the given input stream, or null if something fails or an unrecognized version is found.
    static java.lang.String toJson​(QueryResponse response)
    Return JSON string for given QueryResponse.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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, or null if something fails or an unrecognized version is found.