CommandServlet, is used by stop_iws and restart_iws to stop
and restart the server.
Aliases
Alias: /command
Type: Servlet
Resource: CommandServlet
Servlets
Alias: CommandServlet
Class File: stec.iws.CommandServlet
Parameters:
Notes
Normally defined as a Servlet aliased as /command.
CommandServlet accepts the following request parameters:
action
|
The action to take,
[restart|stop].
restart is used to restart the server.
stop is used to stop the server.
|
id
|
The administrator's username.
|
pw
|
The administrator's password.
|
CommandServlets returns the following status codes:
200
|
Server was stopped/restarted.
|
401
|
Invalid username/password.
|
403
|
Server can not be administered remotely.
|
501
|
Invalid action.
|
Example
http://localhost:8080/command ?id=admin&pw=admin&action=stop
|