Interface RestChannel

  • All Known Implementing Classes:
    AbstractRestChannel

    public interface RestChannel
    A channel used to construct bytes / builder based outputs, and send responses.
    • Method Detail

      • newBuilder

        XContentBuilder newBuilder()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • newErrorBuilder

        XContentBuilder newErrorBuilder()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • detailedErrorsEnabled

        boolean detailedErrorsEnabled()
        Returns:
        true iff an error response should contain additional details like exception traces.
      • sendResponse

        void sendResponse​(RestResponse response)