org.iids.aos.agentserver
Class AgentRunnerServletModule

java.lang.Object
  extended by org.iids.aos.systemservices.module.AbstractModule
      extended by 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

Nested Class Summary
 class AgentRunnerServletModule.MyContextCollectionHandler
          MyContextCollectionHandler.
 
Field Summary
static java.lang.String AGENT_QUERY
           
static java.lang.String AGENTS_QUERY
           
static java.lang.String SERVLET_QUERY
           
 
Constructor Summary
AgentRunnerServletModule(Communicator c)
           
 
Method Summary
 void addContext(AgentID id, java.lang.String servlet)
           
 java.lang.String doHttpRequest(java.lang.String request)
           
 boolean isStarted()
           
 void removeContext(AgentID id)
           
 void setAgentRunner(JavaAgentRunner runner)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.iids.aos.systemservices.module.AbstractModule
getCommunicator, getModuleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AgentRunnerServletModule

public AgentRunnerServletModule(Communicator c)
Method Detail

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.