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()
OperationResponse
getResponseNode
in interface OperationResponse
null
public List<OperationResponse.StreamEntry> getInputStreams()
OperationResponse
getInputStreams
in interface OperationResponse
null
but may be emptypublic OperationResponse.StreamEntry getInputStream(String uuid)
OperationResponse
uuid
.
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 OperationResponse
uuid
- the uuid. Cannot be null
null
if no entry with the given uuid is associatedpublic void close() throws IOException
OperationResponse
associated stream entries
.
close
in interface Closeable
close
in interface AutoCloseable
close
in interface OperationResponse
IOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.