nl.justobjects.pushlet.core
Class SerializedAdapter

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

 class SerializedAdapter
extends java.lang.Object
implements ClientAdapter

Implementation of ClientAdapter that sends Events as serialized objects.

NOTE: You are discouraged to use this adapter, since it is Java-only and may have JVM-specific problems. Far better choice is to use XML and the XMLAdapter.

Version:
$Id: SerializedAdapter.java,v 1.4 2007/11/23 14:33:07 justb Exp $
Author:
Just van den Broecke - Just Objects ©

Field Summary
static java.lang.String CONTENT_TYPE
           
private  java.io.ObjectOutputStream out
           
private  javax.servlet.http.HttpServletResponse servletRsp
           
 
Constructor Summary
SerializedAdapter(javax.servlet.http.HttpServletResponse aServletResponse)
          Initialize.
 
Method Summary
 void push(Event anEvent)
          Push Event to client.
 void start()
          Start event push.
 void stop()
          Stop event push.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private java.io.ObjectOutputStream out

CONTENT_TYPE

public static final java.lang.String CONTENT_TYPE
See Also:
Constant Field Values

servletRsp

private javax.servlet.http.HttpServletResponse servletRsp
Constructor Detail

SerializedAdapter

public SerializedAdapter(javax.servlet.http.HttpServletResponse aServletResponse)
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
Push Event to client.

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

stop

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

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


Copyright 2000-2003 - Just Objects B.V.