fr.paris.lutece.plugins.chat.web
Class ChatServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by fr.paris.lutece.plugins.chat.web.ChatServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ChatServlet
extends javax.servlet.http.HttpServlet

Servlet which returns the last messages of the room on which the user is connected

See Also:
Serialized Form

Constructor Summary
ChatServlet()
           
 
Method Summary
 void destroy()
          Clean the ressources
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process HTTP Get request
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process HTTP Post request
 void init(javax.servlet.ServletConfig config)
          Initialize the servlet
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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

ChatServlet

public ChatServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Initialize the servlet

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - The servlet config
Throws:
javax.servlet.ServletException - If an exception occurs that interrupts the servlet's normal operation

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Process HTTP Get request

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - The http request
response - The http response
Throws:
javax.servlet.ServletException - If an exception occurs that interrupts the servlet's normal operation
java.io.IOException - If an I/O exception occurs

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Process HTTP Post request

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - The http request
response - The http response
Throws:
javax.servlet.ServletException - If an exception occurs that interrupts the servlet's normal operation
java.io.IOException - If an I/O exception occurs

destroy

public void destroy()
Clean the ressources

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet


Copyright © 2010 Mairie de Paris. All Rights Reserved.