Class JsonWriter.SearchResultSerializer

  • All Implemented Interfaces:
    com.google.gson.JsonSerializer<SearchResponse>
    Enclosing class:
    JsonWriter

    private static class JsonWriter.SearchResultSerializer
    extends Object
    implements com.google.gson.JsonSerializer<SearchResponse>
    Serializes a SearchResponse by creating a json array to contain the entries. Each entry is a json object with the DN represented as a json primitive. Each attribute contains a json array of values.
    • Constructor Detail

      • SearchResultSerializer

        private SearchResultSerializer()
    • Method Detail

      • serialize

        public com.google.gson.JsonElement serialize​(SearchResponse result,
                                                     Type type,
                                                     com.google.gson.JsonSerializationContext context)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<SearchResponse>