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 ModelNodethat is associated with the response.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the underlying stream.StringgetMimeType()Gets the MIME type of the streamInputStreamgetStream()Gets the underlying stream.StringgetUUID()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 IOExceptionCloses the underlying stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-