kaos.kpat.tunnel
Class TunnelServlet
java.lang.Object
HttpServlet
kaos.kpat.tunnel.TunnelServlet
- Direct Known Subclasses:
- CorbaServlet, GridServlet, TCPServlet
public abstract class TunnelServlet
- extends HttpServlet
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 |
DIRECTORY_SERVICE_LOCATOR
public static final java.lang.String DIRECTORY_SERVICE_LOCATOR
- See Also:
- Constant Field Values
TunnelServlet
public TunnelServlet()
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