Interface RestHandler

    • Method Detail

      • handleRequest

        void handleRequest​(RestRequest request,
                           RestChannel channel,
                           NodeClient client)
                    throws java.lang.Exception
        Handles a rest request.
        request - The request to handle
        channel - The channel to write the request response to
        client - A client to use to make internal requests on behalf of the original request
      • canTripCircuitBreaker

        default boolean canTripCircuitBreaker()
      • supportsContentStream

        default boolean supportsContentStream()
        Indicates if the RestHandler supports content as a stream. A stream would be multiple objects delineated by XContent.streamSeparator(). If a handler returns true this will affect the types of content that can be sent to this endpoint.