nl.justobjects.pushlet.core
Class XMLAdapter

java.lang.Object
  extended by nl.justobjects.pushlet.core.XMLAdapter
All Implemented Interfaces:
ClientAdapter

 class XMLAdapter
extends java.lang.Object
implements ClientAdapter

ClientAdapter that sends Events as XML.

Version:
$Id: XMLAdapter.java,v 1.7 2007/11/09 13:15:35 justb Exp $
Author:
Just van den Broecke - Just Objects ©

Field Summary
private  java.lang.String contentType
          Header for strict XML
private  javax.servlet.ServletOutputStream out
           
private  javax.servlet.http.HttpServletResponse servletRsp
           
private  boolean strictXML
           
 
Constructor Summary
XMLAdapter(javax.servlet.http.HttpServletResponse aServletResponse)
          Initialize.
XMLAdapter(javax.servlet.http.HttpServletResponse aServletResponse, boolean useStrictXML)
          Initialize.
 
Method Summary
private  void debug(java.lang.String s)
           
 void push(Event anEvent)
          Force client to refresh the request.
 void start()
          Start event push.
 void stop()
          No action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentType

private java.lang.String contentType
Header for strict XML


out

private javax.servlet.ServletOutputStream out

servletRsp

private javax.servlet.http.HttpServletResponse servletRsp

strictXML

private boolean strictXML
Constructor Detail

XMLAdapter

public XMLAdapter(javax.servlet.http.HttpServletResponse aServletResponse)
Initialize.


XMLAdapter

public XMLAdapter(javax.servlet.http.HttpServletResponse aServletResponse,
                  boolean useStrictXML)
Initialize.

Method Detail

start

public void start()
           throws java.io.IOException
Description copied from interface: ClientAdapter
Start event push.

Specified by:
start in interface ClientAdapter
Throws:
java.io.IOException

push

public void push(Event anEvent)
          throws java.io.IOException
Force client to refresh the request.

Specified by:
push in interface ClientAdapter
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
No action.

Specified by:
stop in interface ClientAdapter
Throws:
java.io.IOException

debug

private void debug(java.lang.String s)


Copyright 2000-2003 - Just Objects B.V.