org.iids.aos.agentserver
Class AgentRunnerServletModule.MyContextCollectionHandler

java.lang.Object
  extended by org.mortbay.component.AbstractLifeCycle
      extended by org.mortbay.jetty.handler.AbstractHandler
          extended by org.mortbay.jetty.handler.AbstractHandlerContainer
              extended by org.mortbay.jetty.handler.HandlerWrapper
                  extended by org.iids.aos.agentserver.AgentRunnerServletModule.MyContextCollectionHandler
All Implemented Interfaces:
org.mortbay.component.LifeCycle, org.mortbay.jetty.Handler, org.mortbay.jetty.HandlerContainer
Enclosing class:
AgentRunnerServletModule

public class AgentRunnerServletModule.MyContextCollectionHandler
extends org.mortbay.jetty.handler.HandlerWrapper

MyContextCollectionHandler. Deals with requests for agent's servlets. It will on-the-fly add agent's contexts to the Jetty engine to let those contexts handle the request for the agent's servlet. Depending on the target, it will call the appropriate method to handle this servlet call. Target url can either be: 1) .../agents/ 2) .../agents//servlet 3) .../location/// 4) .../location////agents//log ad 1) print info on agent. ad 2) call servlet of agent. ad 3) print info on agentserver. ad 4) print log of finished agent.


Field Summary
 
Fields inherited from class org.mortbay.jetty.handler.AbstractHandler
_string
 
Fields inherited from interface org.mortbay.jetty.Handler
ALL, DEFAULT, ERROR, FORWARD, INCLUDE, REQUEST
 
Constructor Summary
AgentRunnerServletModule.MyContextCollectionHandler()
           
 
Method Summary
 void handle(java.lang.String target, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, int dispatch)
           
 
Methods inherited from class org.mortbay.jetty.handler.HandlerWrapper
addHandler, doStart, doStop, expandChildren, getHandler, removeHandler, setHandler, setServer
 
Methods inherited from class org.mortbay.jetty.handler.AbstractHandlerContainer
expandHandler, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
 
Methods inherited from class org.mortbay.jetty.handler.AbstractHandler
destroy, getServer, toString
 
Methods inherited from class org.mortbay.component.AbstractLifeCycle
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mortbay.component.LifeCycle
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop
 

Constructor Detail

AgentRunnerServletModule.MyContextCollectionHandler

public AgentRunnerServletModule.MyContextCollectionHandler()
Method Detail

handle

public void handle(java.lang.String target,
                   javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   int dispatch)
            throws java.io.IOException,
                   javax.servlet.ServletException
Specified by:
handle in interface org.mortbay.jetty.Handler
Overrides:
handle in class org.mortbay.jetty.handler.HandlerWrapper
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.