com.sun.grizzly.cometd
Class CometdResponse<T>

java.lang.Object
  extended by com.sun.grizzly.cometd.CometdResponse<T>

public abstract class CometdResponse<T>
extends Object

A wrapper providing a common view of a response for use by cometd;

Author:
Jeanfrancois Arcand

Field Summary
protected  T response
           
 
Constructor Summary
CometdResponse(T response)
           
 
Method Summary
abstract  void flush()
           
 T getResponse()
           
abstract  void setContentType(String s)
           
 void setResponse(T response)
           
abstract  void write(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

response

protected T response
Constructor Detail

CometdResponse

public CometdResponse(T response)
Method Detail

getResponse

public T getResponse()

setResponse

public void setResponse(T response)

write

public abstract void write(String s)
                    throws IOException
Throws:
IOException

flush

public abstract void flush()
                    throws IOException
Throws:
IOException

setContentType

public abstract void setContentType(String s)


Copyright © 2009 SUN Microsystems. All Rights Reserved.