Class BytesRestResponse

    • Field Detail

      • TEXT_CONTENT_TYPE

        public static final java.lang.String TEXT_CONTENT_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • BytesRestResponse

        public BytesRestResponse​(RestStatus status,
                                 java.lang.String content)
        Creates a new plain text response.
      • BytesRestResponse

        public BytesRestResponse​(RestStatus status,
                                 java.lang.String contentType,
                                 java.lang.String content)
        Creates a new plain text response.
      • BytesRestResponse

        public BytesRestResponse​(RestStatus status,
                                 java.lang.String contentType,
                                 byte[] content)
        Creates a binary response.
      • BytesRestResponse

        public BytesRestResponse​(RestStatus status,
                                 java.lang.String contentType,
                                 BytesReference content)
        Creates a binary response.
      • BytesRestResponse

        public BytesRestResponse​(RestChannel channel,
                                 java.lang.Exception e)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • BytesRestResponse

        public BytesRestResponse​(RestChannel channel,
                                 RestStatus status,
                                 java.lang.Exception e)
                          throws java.io.IOException
        Throws:
        java.io.IOException