Package org.hyperledger.fabric.shim
Class Chaincode.Response
- java.lang.Object
-
- org.hyperledger.fabric.shim.Chaincode.Response
-
- Enclosing interface:
- Chaincode
public static class Chaincode.Response extends java.lang.Object
Wrapper around protobuf Response, contains status, message and payload. Object returned by call toChaincode.init(ChaincodeStub)
andChaincode.invoke(ChaincodeStub)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Chaincode.Response.Status
Chaincode.Response
status enum.
-
Constructor Summary
Constructors Constructor Description Response(int statusCode, java.lang.String message, byte[] payload)
Response(Chaincode.Response.Status status, java.lang.String message, byte[] payload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
byte[]
getPayload()
Chaincode.Response.Status
getStatus()
int
getStatusCode()
java.lang.String
getStringPayload()
-
-
-
Constructor Detail
-
Response
public Response(Chaincode.Response.Status status, java.lang.String message, byte[] payload)
-
Response
public Response(int statusCode, java.lang.String message, byte[] payload)
-
-
Method Detail
-
getStatus
public Chaincode.Response.Status getStatus()
-
getStatusCode
public int getStatusCode()
-
getMessage
public java.lang.String getMessage()
-
getPayload
public byte[] getPayload()
-
getStringPayload
public java.lang.String getStringPayload()
-
-