|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
thinkmap.server.StatusServlet
public class StatusServlet
This servlet serves status information about all the Thinkmap Data Sources loaded by the server.
| Field Summary | |
|---|---|
static String |
CUSTOM_ACTIONS
|
| Constructor Summary | |
|---|---|
StatusServlet()
|
|
| Method Summary | |
|---|---|
protected IAction |
getAction(String id)
Get an action by name |
protected List<IDataSourceAction> |
getActions(DataSourceContext context)
|
protected Map<String,Object> |
getDataSources(DataSourceServlet dsServlet)
Add information to a parent node |
protected List<IServerAction> |
getServerActions()
|
protected Object |
getServerProperties(DataSourceServlet dsServlet)
Get basic information about the server and add it to a parent node |
protected Object |
getStatus(HttpServletRequest request,
ServletContext context)
|
void |
init()
Initialize |
void |
init(ServletConfig config)
|
void |
log(int level,
String message,
Throwable e)
Log a message to the servlet log and to the memroy error log. |
void |
registerAction(IAction action)
Register an action |
protected void |
service(HttpServletRequest req,
HttpServletResponse resp)
Service a request |
protected JSONWriter |
writer(HttpServletResponse resp)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CUSTOM_ACTIONS
| Constructor Detail |
|---|
public StatusServlet()
| Method Detail |
|---|
public void init(ServletConfig config)
throws ServletException
init in interface Servletinit in class GenericServletServletException
public void init()
throws ServletException
init in class GenericServletServletException
protected void service(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException
service in class HttpServletServletException
IOException
protected JSONWriter writer(HttpServletResponse resp)
throws IOException
IOException
protected Object getStatus(HttpServletRequest request,
ServletContext context)
throws Exception
Exceptionprotected Object getServerProperties(DataSourceServlet dsServlet)
protected Map<String,Object> getDataSources(DataSourceServlet dsServlet)
throws Exception
Exceptionprotected List<IServerAction> getServerActions()
protected List<IDataSourceAction> getActions(DataSourceContext context)
public void registerAction(IAction action)
protected IAction getAction(String id)
public void log(int level,
String message,
Throwable e)
level - logging level: see MemoryErrorLog for allowed values.message - the message to log (may be null)e - the exception to log (may be null)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||