nxt.http

## Class DecodeQRCode

- java.lang.Object
- - nxt.http.APIServlet.APIRequestHandler
  - - nxt.http.DecodeQRCode

-     public final class DecodeQRCode
      extends APIServlet.APIRequestHandler

  The DecodeQRCode API converts a base64-encoded image of a 2-D QR (Quick Response) code to a UTF-8 string, using the ZXing library.

  The input qrCodeBase64 can be the output of the DecodeQRCode API.

  Request parameters:

  - qrCodeBase64 - A base64 string encoded from an image of a QR code. The length of the string must be less than the jetty server maximum allowed parameter length, currently 200,000 bytes.

  Response fields:

  - qrCodeData - A UTF-8 string decoded from the QR code.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `allowRequiredBlockParameters()`
    `protected boolean` | `isChainSpecific()`
    `protected org.json.simple.JSONStreamAware` | `processRequest(javax.servlet.http.HttpServletRequest request)`
    `protected boolean` | `requireBlockchain()`
    `protected boolean` | `requirePost()`

    - ### Methods inherited from class nxt.http.APIServlet.APIRequestHandler

      `getAPITags, getFileParameter, getParameters, isIgnisOnly, isPassword, isTextArea, processRequest, requireFullClient, requirePassword, startDbTransaction`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### processRequest

          protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest request)

      Specified by:
        `processRequest` in class `APIServlet.APIRequestHandler`

    - #### requirePost

          protected final boolean requirePost()

      Overrides:
        `requirePost` in class `APIServlet.APIRequestHandler`

    - #### allowRequiredBlockParameters

          protected boolean allowRequiredBlockParameters()

      Overrides:
        `allowRequiredBlockParameters` in class `APIServlet.APIRequestHandler`

    - #### requireBlockchain

          protected boolean requireBlockchain()

      Overrides:
        `requireBlockchain` in class `APIServlet.APIRequestHandler`

    - #### isChainSpecific

          protected boolean isChainSpecific()

      Overrides:
        `isChainSpecific` in class `APIServlet.APIRequestHandler`