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.lang.String fileParameter,
APITag[] apiTags,
java.lang.String... origParameters) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowRequiredBlockParameters() |
java.util.Set<APITag> |
getAPITags() |
java.lang.String |
getFileParameter() |
java.util.List<java.lang.String> |
getParameters() |
protected boolean |
isPassword(java.lang.String parameter) |
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)
public final java.util.List<java.lang.String> getParameters()
public final java.util.Set<APITag> getAPITags()
public final java.lang.String getFileParameter()
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 isTextArea(java.lang.String parameter)
protected boolean isPassword(java.lang.String parameter)