Class ResponseUtils


  • public final class ResponseUtils
    extends java.lang.Object
    • Method Detail

      • newSuccessResponse

        public static Chaincode.Response newSuccessResponse​(java.lang.String message,
                                                            byte[] payload)
        Parameters:
        message -
        payload -
        Returns:
        Chaincode.Response
      • newSuccessResponse

        public static Chaincode.Response newSuccessResponse()
        Returns:
        Chaincode.Response
      • newSuccessResponse

        public static Chaincode.Response newSuccessResponse​(java.lang.String message)
        Parameters:
        message -
        Returns:
        Chaincode.Response
      • newSuccessResponse

        public static Chaincode.Response newSuccessResponse​(byte[] payload)
        Parameters:
        payload -
        Returns:
        Chaincode.Response
      • newErrorResponse

        public static Chaincode.Response newErrorResponse​(java.lang.String message,
                                                          byte[] payload)
        Parameters:
        message -
        payload -
        Returns:
        Chaincode.Response
      • newErrorResponse

        public static Chaincode.Response newErrorResponse()
        Returns:
        Chaincode.Response
      • newErrorResponse

        public static Chaincode.Response newErrorResponse​(java.lang.String message)
        Parameters:
        message -
        Returns:
        Chaincode.Response
      • newErrorResponse

        public static Chaincode.Response newErrorResponse​(byte[] payload)
        Parameters:
        payload -
        Returns:
        Chaincode.Response
      • newErrorResponse

        public static Chaincode.Response newErrorResponse​(java.lang.Throwable throwable)
        Parameters:
        throwable -
        Returns:
        Chaincode.Response