Interface ResultBuilder


  • @ProviderType
    public interface ResultBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.gson.JsonObject toJSON​(Command cmd, Result result, org.apache.sling.api.resource.ValueMap config)
      Turns the Result combination into a JSON object by way of ResultSerializers.
    • Method Detail

      • toJSON

        com.google.gson.JsonObject toJSON​(Command cmd,
                                          Result result,
                                          org.apache.sling.api.resource.ValueMap config)
        Turns the Result combination into a JSON object by way of ResultSerializers.
        Parameters:
        cmd - the Command
        result - the Result
        config - configuration used by ResultSerializer implementations
        Returns:
        the JSON representation of the result
        Throws:
        JSONException