xmlBlaster 2.1.0 API

org.xmlBlaster.protocol.http
Class BrowserTest

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.xmlBlaster.protocol.http.BrowserTest
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class BrowserTest
extends javax.servlet.http.HttpServlet

This servlet doesn't leave the doGet() method after an invocation keeping a permanent http connection Use this class to test the behavior of your browser.

 http://localhost/xmlBlaster/BrowserTest?mode=multi
 http://localhost/xmlBlaster/BrowserTest?mode=push
 http://localhost/xmlBlaster/BrowserTest?mode=poll
 

Author:
xmlBlaster@marcelruff.info
See Also:
Serialized Form

Field Summary
private  int globalVal
           
private static java.util.logging.Logger log
           
private  java.lang.String ME
           
private  java.lang.String mode
           
 
Constructor Summary
BrowserTest()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          GET request from the browser Testing three modes how to update the browser
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          POST request from the browser.
 void init(javax.servlet.ServletConfig conf)
          This method is invoked only once when the servlet is startet.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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
 

Field Detail

ME

private final java.lang.String ME
See Also:
Constant Field Values

globalVal

private int globalVal

mode

private java.lang.String mode

log

private static java.util.logging.Logger log
Constructor Detail

BrowserTest

public BrowserTest()
Method Detail

init

public void init(javax.servlet.ServletConfig conf)
          throws javax.servlet.ServletException
This method is invoked only once when the servlet is startet.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
conf - init parameter of the servlet
Throws:
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException
POST request from the browser.

This method is called through a SUBMIT of a HTML FORM,
the TARGET should be set to "callbackFrame"

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - Data from browser
res - Response of the servlet
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException
GET request from the browser Testing three modes how to update the browser

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.