Package org.jboss.as.controller.client
Interface OperationResponse.StreamEntry
-
- All Superinterfaces:
AutoCloseable
,Closeable
- Enclosing interface:
- OperationResponse
public static interface OperationResponse.StreamEntry extends Closeable
An additional stream, besides the normalresponse ModelNode
that is associated with the response.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes the underlying stream.String
getMimeType()
Gets the MIME type of the streamInputStream
getStream()
Gets the underlying stream.String
getUUID()
Gets the unique identifier for this stream.
-
-
-
Method Detail
-
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 interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-