kaos.kpat.tunnel
Class TunnelServlet

java.lang.Object
  extended by HttpServlet
      extended by kaos.kpat.tunnel.TunnelServlet
Direct Known Subclasses:
CorbaServlet, GridServlet, TCPServlet

public abstract class TunnelServlet
extends HttpServlet

TunnelServlet


Field Summary
static java.lang.String DIRECTORY_SERVICE_LOCATOR
           
 
Constructor Summary
TunnelServlet()
           
 
Method Summary
protected  void doPut(HttpServletRequest req, HttpServletResponse resp)
           
 boolean initialize(ServiceRoot sr)
          Subclasses must call this method to initialize the servlet
abstract  JasBean obtainEntityEnv()
          Subclasses must implement this method.
 void receiveMessage(TransportMessage tMsg)
          javax.agent.service.transport.MessageListener interface implementation - begin
protected  void sendMsg(Msg content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRECTORY_SERVICE_LOCATOR

public static final java.lang.String DIRECTORY_SERVICE_LOCATOR
See Also:
Constant Field Values
Constructor Detail

TunnelServlet

public TunnelServlet()
Method Detail

initialize

public boolean initialize(ServiceRoot sr)
                   throws java.lang.Exception
Subclasses must call this method to initialize the servlet

Throws:
java.lang.Exception

obtainEntityEnv

public abstract JasBean obtainEntityEnv()
Subclasses must implement this method. It should return a JasBean which contains: key: value: DIRECTORY_SERVICE_LOCATOR Locator for the directory service along with any other environment information that your MessageTransportService's newLocalLocator(env) and newMessageReceiver(env) methods require in order for this servlet to get a local locator and bind a message receiver to it


doPut

protected void doPut(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     java.io.IOException
Throws:
ServletException
java.io.IOException

sendMsg

protected void sendMsg(Msg content)
                throws NotLocatableException,
                       TransportFailure
Throws:
NotLocatableException
TransportFailure

receiveMessage

public void receiveMessage(TransportMessage tMsg)
javax.agent.service.transport.MessageListener interface implementation - begin