public abstract static class APIServlet.APIRequestHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DESCRIPTION_FIELD |
protected static java.lang.String |
MESSAGE_FIELD |
protected static java.lang.String |
NAME_FIELD |
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 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 static java.lang.String NAME_FIELD
protected static java.lang.String DESCRIPTION_FIELD
protected static java.lang.String MESSAGE_FIELD
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()