Package nxt.http
Class GetLog
- java.lang.Object
-
- nxt.http.APIServlet.APIRequestHandler
-
- nxt.http.GetLog
-
public final class GetLog extends APIServlet.APIRequestHandler
The GetLog API will return log messages from the ring buffer maintained by the MemoryHandler log handler. The most recent 'count' messages will be returned. All log messages in the ring buffer will be returned if 'count' is omitted.
Request parameters:
- count - The number of log messages to return
Response parameters:
- messages - An array of log messages
-
-
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 boolean
allowRequiredBlockParameters()
protected org.json.simple.JSONStreamAware
processRequest(javax.servlet.http.HttpServletRequest req)
Process the GetLog API requestprotected boolean
requireBlockchain()
protected boolean
requirePassword()
Require the administrator password-
Methods inherited from class nxt.http.APIServlet.APIRequestHandler
getAPITags, getFileParameter, getParameters, processRequest, requireFullClient, requirePost, startDbTransaction
-
-
-
-
Method Detail
-
processRequest
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req)
Process the GetLog API request- Specified by:
processRequest
in classAPIServlet.APIRequestHandler
- Parameters:
req
- API request- Returns:
- API response
-
requirePassword
protected boolean requirePassword()
Require the administrator password- Overrides:
requirePassword
in classAPIServlet.APIRequestHandler
- Returns:
- TRUE if the admin password is required
-
allowRequiredBlockParameters
protected boolean allowRequiredBlockParameters()
- Overrides:
allowRequiredBlockParameters
in classAPIServlet.APIRequestHandler
-
requireBlockchain
protected boolean requireBlockchain()
- Overrides:
requireBlockchain
in classAPIServlet.APIRequestHandler
-
-