Class LookupApplicationBoxByIDAndName


  • public class LookupApplicationBoxByIDAndName
    extends Query
    Given an application ID and box name, returns base64 encoded box name and value. Box names must be in the goal app call arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, encode base 64 and use 'b64' prefix as in 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'. /v2/applications/{application-id}/box
    • Constructor Detail

      • LookupApplicationBoxByIDAndName

        public LookupApplicationBoxByIDAndName​(Client client,
                                               Long applicationId)
        Parameters:
        applicationId -
    • Method Detail

      • name

        public LookupApplicationBoxByIDAndName name​(String name)
        A box name in goal-arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.
      • execute

        public Response<Box> execute​(String[] headers,
                                     String[] values)
                              throws Exception
        Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.
        Specified by:
        execute in class Query
        Parameters:
        headers - an array of header keys
        values - an array of header values
        Returns:
        the query response object.
        Throws:
        Exception