Repository
Class HTTPQuery

java.lang.Object
  extended byHttpServlet
      extended byRepository.HTTPQuery

public class HTTPQuery
extends HttpServlet

Web service server for raw HTTP.

Changes:

alexis.grandemange@pagebox.net

Copyright (c) 2002-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 1, 0
Author:
Alexis Grandemange
See Also:
Serialized Form

Field Summary
(package private)  RepoQueryImpl rqi
          RepoQueryImpl defined as a member variable to follow the Web service semantic
 
Constructor Summary
HTTPQuery()
           
 
Method Summary
 void destroy()
          Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
 void doGet(HttpServletRequest request, HttpServletResponse response)
          GET request handling.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          POST request handling.
private  void frameSend(java.lang.String user, HttpServletResponse response, HTTPLog hl)
          FRAMESEND handling.
private  void GetSubscribers(java.lang.String user, HttpServletResponse response, HTTPLog hl)
          GETSUBSCRIBERS handling.
 void init(ServletConfig config)
          Invoked by Servlet container.
private  void Notify(java.lang.String user, HttpServletResponse response, HTTPLog hl)
          NOTIFY handling.
private  void NotifyFix(java.lang.String user, HttpServletResponse response, HTTPLog hl)
          NOTIFYFIX handling.
private  void tokenRegister(java.lang.String user, HttpServletResponse response, HTTPLog hl)
          TKREGISTER handling.
private  void tokenUnregister(java.lang.String user, HttpServletResponse response, HTTPLog hl)
          TKUNREGISTER handling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rqi

RepoQueryImpl rqi
RepoQueryImpl defined as a member variable to follow the Web service semantic

Constructor Detail

HTTPQuery

public HTTPQuery()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Invoked by Servlet container.

Throws:
ServletException

destroy

public void destroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.


doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  java.io.IOException
GET request handling. Informs the user that GET is not supported.

Parameters:
request - HttpServletRequest.
response - HttpServletResponse.
Throws:
ServletException
java.io.IOException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   java.io.IOException
POST request handling.

Parameters:
request - HttpServletRequest.
response - HttpServletResponse.
Throws:
ServletException
java.io.IOException

GetSubscribers

private void GetSubscribers(java.lang.String user,
                            HttpServletResponse response,
                            HTTPLog hl)
                     throws ServletException,
                            java.io.IOException
GETSUBSCRIBERS handling.

Parameters:
response - response object
hl - object used to trace messages
Throws:
ServletException
java.io.IOException

Notify

private void Notify(java.lang.String user,
                    HttpServletResponse response,
                    HTTPLog hl)
             throws ServletException,
                    java.io.IOException
NOTIFY handling.

Parameters:
response - response object
hl - object used to trace messages
Throws:
ServletException
java.io.IOException

NotifyFix

private void NotifyFix(java.lang.String user,
                       HttpServletResponse response,
                       HTTPLog hl)
                throws ServletException,
                       java.io.IOException
NOTIFYFIX handling.

Parameters:
response - response object
hl - object used to trace messages
Throws:
ServletException
java.io.IOException

frameSend

private void frameSend(java.lang.String user,
                       HttpServletResponse response,
                       HTTPLog hl)
                throws ServletException,
                       java.io.IOException
FRAMESEND handling.

Parameters:
response - response object
hl - object used to trace messages
Throws:
ServletException
java.io.IOException

tokenRegister

private void tokenRegister(java.lang.String user,
                           HttpServletResponse response,
                           HTTPLog hl)
                    throws ServletException,
                           java.io.IOException
TKREGISTER handling.

Parameters:
response - response object
hl - object used to trace messages
Throws:
ServletException
java.io.IOException

tokenUnregister

private void tokenUnregister(java.lang.String user,
                             HttpServletResponse response,
                             HTTPLog hl)
                      throws ServletException,
                             java.io.IOException
TKUNREGISTER handling.

Parameters:
response - response object
hl - object used to trace messages
Throws:
ServletException
java.io.IOException