Package org.hyperledger.fabric.sdk
Class ProposalResponse
- java.lang.Object
-
- org.hyperledger.fabric.sdk.ChaincodeResponse
-
- org.hyperledger.fabric.sdk.ProposalResponse
-
public class ProposalResponse extends ChaincodeResponse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hyperledger.fabric.sdk.ChaincodeResponse
ChaincodeResponse.Status
-
-
Field Summary
-
Fields inherited from class org.hyperledger.fabric.sdk.ChaincodeResponse
statusReturnCode
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getChaincodeActionResponsePayload()
ChaincodeActionResponsePayload is the result of the executing chaincode.TxReadWriteSetInfo
getChaincodeActionResponseReadWriteSetInfo()
getChaincodeActionResponseReadWriteSetInfo get this proposals read write set.int
getChaincodeActionResponseStatus()
getChaincodeActionResponseStatus returns the what chaincode executions set as the return status.ChaincodeID
getChaincodeID()
Chaincode ID that was executed.Peer
getPeer()
The peer this proposal was created on.org.hyperledger.fabric.protos.peer.FabricProposal.Proposal
getProposal()
org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse
getProposalResponse()
Get response to the proposal returned by the peer.boolean
isVerified()
void
setProposal(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal signedProposal)
void
setProposalResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse proposalResponse)
-
Methods inherited from class org.hyperledger.fabric.sdk.ChaincodeResponse
getMessage, getStatus, getTransactionID, isInvalid
-
-
-
-
Method Detail
-
isVerified
public boolean isVerified()
-
getProposal
public org.hyperledger.fabric.protos.peer.FabricProposal.Proposal getProposal()
-
setProposal
public void setProposal(org.hyperledger.fabric.protos.peer.FabricProposal.SignedProposal signedProposal) throws ProposalException
- Throws:
ProposalException
-
getProposalResponse
public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse getProposalResponse()
Get response to the proposal returned by the peer.- Returns:
- peer response.
-
setProposalResponse
public void setProposalResponse(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponse proposalResponse)
-
getChaincodeID
public ChaincodeID getChaincodeID() throws InvalidArgumentException
Chaincode ID that was executed.- Returns:
- See
ChaincodeID
- Throws:
InvalidArgumentException
-
getChaincodeActionResponsePayload
public byte[] getChaincodeActionResponsePayload() throws InvalidArgumentException
ChaincodeActionResponsePayload is the result of the executing chaincode.- Returns:
- the result of the executing chaincode.
- Throws:
InvalidArgumentException
-
getChaincodeActionResponseStatus
public int getChaincodeActionResponseStatus() throws InvalidArgumentException
getChaincodeActionResponseStatus returns the what chaincode executions set as the return status.- Returns:
- status code.
- Throws:
InvalidArgumentException
-
getChaincodeActionResponseReadWriteSetInfo
public TxReadWriteSetInfo getChaincodeActionResponseReadWriteSetInfo() throws InvalidArgumentException
getChaincodeActionResponseReadWriteSetInfo get this proposals read write set.- Returns:
- The read write set. See
TxReadWriteSetInfo
- Throws:
InvalidArgumentException
-
-