public abstract static class APIServlet.APIRequestHandler
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
APIRequestHandler(APITag[] apiTags,
java.lang.String... parameters) |
protected |
APIRequestHandler(java.util.List<TransactionType> transactionTypes,
java.util.List<java.lang.String> fileParameters,
APITag[] apiTags,
java.lang.String... origParameters) |
protected |
APIRequestHandler(java.lang.String fileParameter,
APITag[] apiTags,
java.lang.String... origParameters) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowRequiredBlockParameters() |
protected boolean |
canHaveRecipient() |
java.util.Set<APITag> |
getAPITags() |
protected java.util.List<TransactionType> |
getCreateTransactionTypes()
Some API calls (i.e.
|
java.util.List<java.lang.String> |
getFileParameters() |
java.util.List<java.lang.String> |
getParameters() |
protected java.util.List<java.lang.String> |
getSensitiveParameters() |
protected boolean |
isChainSpecific() |
boolean |
isIgnisOnly() |
protected boolean |
isTextArea(java.lang.String parameter) |
protected abstract org.json.simple.JSONStreamAware |
processRequest(javax.servlet.http.HttpServletRequest request) |
protected org.json.simple.JSONStreamAware |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
requireBlockchain() |
protected boolean |
requireFullClient() |
protected boolean |
requirePassword() |
protected boolean |
requirePost() |
protected boolean |
startDbTransaction() |
protected APIRequestHandler(APITag[] apiTags, java.lang.String... parameters)
protected APIRequestHandler(java.lang.String fileParameter, APITag[] apiTags, java.lang.String... origParameters)
protected APIRequestHandler(java.util.List<TransactionType> transactionTypes, java.util.List<java.lang.String> fileParameters, APITag[] apiTags, java.lang.String... origParameters)
public final java.util.List<java.lang.String> getParameters()
public final java.util.Set<APITag> getAPITags()
public final java.util.List<java.lang.String> getFileParameters()
public boolean isIgnisOnly()
protected abstract org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest request) throws NxtException
NxtException
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws NxtException
NxtException
protected boolean requirePost()
protected boolean startDbTransaction()
protected boolean requirePassword()
protected boolean allowRequiredBlockParameters()
protected boolean requireBlockchain()
protected boolean requireFullClient()
protected boolean isChainSpecific()
protected boolean isTextArea(java.lang.String parameter)
protected java.util.List<java.lang.String> getSensitiveParameters()
protected java.util.List<TransactionType> getCreateTransactionTypes()
protected boolean canHaveRecipient()