org.mortbay.cometd
Class JSONTransport

java.lang.Object
  extended by org.mortbay.cometd.AbstractTransport
      extended by org.mortbay.cometd.JSONTransport
All Implemented Interfaces:
Transport

public class JSONTransport
extends AbstractTransport


Field Summary
protected  java.lang.String _contentType
           
protected  java.lang.String _end
           
protected  java.lang.String _start
           
 
Constructor Summary
JSONTransport(boolean commented)
           
 
Method Summary
 void complete()
           
 boolean isJSONCommented()
           
 boolean resumePoll()
           
 void send(org.cometd.Message message)
           
 void setJSONCommented(boolean commented)
           
 
Methods inherited from class org.mortbay.cometd.AbstractTransport
getPollReply, getResponse, setPollReply, setResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_contentType

protected java.lang.String _contentType

_start

protected java.lang.String _start

_end

protected java.lang.String _end
Constructor Detail

JSONTransport

public JSONTransport(boolean commented)
Method Detail

isJSONCommented

public boolean isJSONCommented()
Returns:
the commented

setJSONCommented

public void setJSONCommented(boolean commented)
Parameters:
commented - the commented to set

send

public void send(org.cometd.Message message)
          throws java.io.IOException
Throws:
java.io.IOException

complete

public void complete()
              throws java.io.IOException
Throws:
java.io.IOException

resumePoll

public boolean resumePoll()


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.