org.iids.aos.agentserver
Class AgentRunnerServletModule
java.lang.Object
org.iids.aos.systemservices.module.AbstractModule
org.iids.aos.agentserver.AgentRunnerServletModule
- All Implemented Interfaces:
- Module
public class AgentRunnerServletModule
- extends AbstractModule
Servlet module for AgentRunner service. This accepts incoming HTTP requests
through the AsCommunicator (do_http_request). The request is then forwarded
to the servlet of the existing agent. If the servlet does not exist, then
the default behaviour is to show the agentLog.
More servlet based semantics are possible later. Just for testing purposes
now. Later on, agents could register their own servlets and the user should
be able to select which servlet to run.
- Author:
- rjtimmer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AGENT_QUERY
public static java.lang.String AGENT_QUERY
AGENTS_QUERY
public static java.lang.String AGENTS_QUERY
SERVLET_QUERY
public static java.lang.String SERVLET_QUERY
AgentRunnerServletModule
public AgentRunnerServletModule(Communicator c)
addContext
public void addContext(AgentID id,
java.lang.String servlet)
removeContext
public void removeContext(AgentID id)
setAgentRunner
public void setAgentRunner(JavaAgentRunner runner)
start
public void start()
stop
public void stop()
isStarted
public boolean isStarted()
doHttpRequest
public java.lang.String doHttpRequest(java.lang.String request)
Copyright ? 2003, 2004 IIDS Group. All Rights Reserved.