org.locomotive.loco
Class ServerServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--org.locomotive.loco.ServerServlet
- public class ServerServlet
- extends javax.servlet.http.HttpServlet
The Server Servlet provides bare bones administration facilities for
the Locomotive. It is accessed by the url token 'srv'. Valid commands
include:
- srv - display status
- srv?shutdown - mark the server for shutdown.
calls Loco.setStopAccepting
- srv?status - display status
- srv?reload_templates - tells the CachePageManager to flush cached
Templates
- srv?reload_srt - attempts to reload the hrt.conf file and
re-initialize all the Handlers.
This class implements the same functionality as the ServerHandler,
except in Servlet form.
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected static java.lang.String |
handleSRTReloadRequest(User user)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete,
doOptions,
doPost,
doPut,
doTrace,
getLastModified,
service,
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy,
getInitParameter,
getInitParameterNames,
getServletConfig,
getServletContext,
getServletInfo,
init,
init,
log,
log |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ServerServlet
public ServerServlet()
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
- doGet in class javax.servlet.http.HttpServlet
handleSRTReloadRequest
protected static java.lang.String handleSRTReloadRequest(User user)