org.exolab.jms.server.http.servlet
Class HttpJmsServerServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.exolab.jms.server.http.servlet.HttpJmsServerServlet
All Implemented Interfaces:
org.exolab.core.mipc.DisconnectionEventListener, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class HttpJmsServerServlet
extends javax.servlet.http.HttpServlet
implements org.exolab.core.mipc.DisconnectionEventListener

Servlet for handling OpenJMS server requests and message publishing.

Version:
$Revision: 1.7 $ $Date: 2003/08/07 13:33:09 $
Author:
Jim Mourikis
See Also:
Serialized Form

Constructor Summary
HttpJmsServerServlet()
           
 
Method Summary
protected  void connect()
          Connect to the OpenJMS server.
 void destroy()
          Clean up resources
 void disconnected(org.exolab.core.mipc.MultiplexConnectionIfc connection)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handle HTTP POST requests
 void init(javax.servlet.ServletConfig config)
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpJmsServerServlet

public HttpJmsServerServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
Overrides:
init in class javax.servlet.GenericServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException
Handle HTTP POST requests
Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - contains the request the client has made of the servlet
response - contains the response the servlet sends to the client
Throws:
java.io.IOException - if an I/O error is encountered

destroy

public void destroy()
Clean up resources
Overrides:
destroy in class javax.servlet.GenericServlet

disconnected

public void disconnected(org.exolab.core.mipc.MultiplexConnectionIfc connection)
Specified by:
disconnected in interface org.exolab.core.mipc.DisconnectionEventListener

connect

protected void connect()
                throws javax.servlet.ServletException
Connect to the OpenJMS server.


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.