Interface OperationResponse.StreamEntry

All Superinterfaces:
AutoCloseable, Closeable
Enclosing interface:
OperationResponse

public static interface OperationResponse.StreamEntry extends Closeable
An additional stream, besides the normal response ModelNode that is associated with the response.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the underlying stream.
    Gets the MIME type of the stream
    Gets the underlying stream.
    Gets the unique identifier for this stream.
  • Method Details

    • getUUID

      String getUUID()
      Gets the unique identifier for this stream. Meant to be unique within the context of the operation.
      Returns:
      the id. Will not be null
    • getMimeType

      String getMimeType()
      Gets the MIME type of the stream
      Returns:
      the mime type. Cannot be null
    • getStream

      InputStream getStream()
      Gets the underlying stream.
    • close

      void close() throws IOException
      Closes the underlying stream.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException