public class OperationResponseProxy extends Object implements OperationResponse
OperationResponse that proxies back to a remote server
to read any attached response streams.OperationResponse.Factory, OperationResponse.StreamEntry| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any
associated stream entries. |
static OperationResponseProxy |
create(ModelNode responseNode,
org.jboss.as.protocol.mgmt.ManagementChannelAssociation channelAssociation,
int batchId,
ModelNode streamHeader) |
OperationResponse.StreamEntry |
getInputStream(String uuid)
Gets a stream associated with the response that has the given
uuid. |
List<OperationResponse.StreamEntry> |
getInputStreams()
Gets any streams that were associated with the operation response.
|
ModelNode |
getResponseNode()
Gets the DMR response to the operation.
|
public static OperationResponseProxy create(ModelNode responseNode, org.jboss.as.protocol.mgmt.ManagementChannelAssociation channelAssociation, int batchId, ModelNode streamHeader)
public ModelNode getResponseNode()
OperationResponsegetResponseNode in interface OperationResponsenullpublic List<OperationResponse.StreamEntry> getInputStreams()
OperationResponsegetInputStreams in interface OperationResponsenull but may be emptypublic OperationResponse.StreamEntry getInputStream(String uuid)
OperationResponseuuid.
Server side operation step handlers that associate a stream with a response should provide the
stream's uuid as the step's result value in the DMR response.
getInputStream in interface OperationResponseuuid - the uuid. Cannot be nullnull if no entry with the given uuid is associatedpublic void close()
throws IOException
OperationResponseassociated stream entries.
close in interface Closeableclose in interface AutoCloseableclose in interface OperationResponseIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.