Package 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.
-
-
Field Summary
-
Fields inherited from class nxt.http.APIServlet.APIRequestHandler
DESCRIPTION_FIELD, MESSAGE_FIELD, NAME_FIELD
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallowRequiredBlockParameters()protected org.json.simple.JSONStreamAwareprocessRequest(javax.servlet.http.HttpServletRequest request)protected booleanrequireBlockchain()protected booleanrequirePost()-
Methods inherited from class nxt.http.APIServlet.APIRequestHandler
getAPITags, getFileParameter, getParameters, processRequest, requireFullClient, requirePassword, startDbTransaction
-
-
-
-
Method Detail
-
processRequest
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest request) throws NxtException- Specified by:
processRequestin classAPIServlet.APIRequestHandler- Throws:
NxtException
-
requirePost
protected final boolean requirePost()
- Overrides:
requirePostin classAPIServlet.APIRequestHandler
-
allowRequiredBlockParameters
protected boolean allowRequiredBlockParameters()
- Overrides:
allowRequiredBlockParametersin classAPIServlet.APIRequestHandler
-
requireBlockchain
protected boolean requireBlockchain()
- Overrides:
requireBlockchainin classAPIServlet.APIRequestHandler
-
-