kaos.kpat.tunnel
Class TunnelServlet

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

public abstract class TunnelServlet
extends HttpServlet

TunnelServlet

Version:
$Revision: 1.30 $
Author:
jlott

Nested Class Summary
protected  class TunnelServlet.MyObserver
          javax.agent.service.transport.MessageListener interface implementation - end
 
Field Summary
protected  java.util.List _myObservers
           
protected  java.lang.String _transportName
           
static java.lang.String DIRECTORY_SERVICE_LOCATOR
           
 
Constructor Summary
TunnelServlet()
           
 
Method Summary
protected  void doPut(HttpServletRequest req, HttpServletResponse resp)
           
protected  void handleMethodCallRequest(MethodCallRequestMsg requestMsg, java.io.ObjectOutputStream oos)
           
 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 registerKAoSExtensionComponentObserver(java.lang.String repType, java.lang.String ontType, java.util.Hashtable updateTypes, KAoSEntityDescription entityDesc, java.io.ObjectOutputStream oos)
           
protected  void registerObserver(java.util.Hashtable updateTypes, java.io.ObjectOutputStream oos)
           
protected  void registerObserver(java.lang.String updateType, java.io.Serializable condition, KAoSObserver observer)
           
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

_transportName

protected java.lang.String _transportName

_myObservers

protected java.util.List _myObservers
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


registerObserver

protected void registerObserver(java.lang.String updateType,
                                java.io.Serializable condition,
                                KAoSObserver observer)

doPut

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

registerObserver

protected void registerObserver(java.util.Hashtable updateTypes,
                                java.io.ObjectOutputStream oos)

registerKAoSExtensionComponentObserver

protected void registerKAoSExtensionComponentObserver(java.lang.String repType,
                                                      java.lang.String ontType,
                                                      java.util.Hashtable updateTypes,
                                                      KAoSEntityDescription entityDesc,
                                                      java.io.ObjectOutputStream oos)

handleMethodCallRequest

protected void handleMethodCallRequest(MethodCallRequestMsg requestMsg,
                                       java.io.ObjectOutputStream oos)
                                throws java.io.IOException
Throws:
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