org.mortbay.cometd
Class JSONPTransport

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

public class JSONPTransport
extends AbstractTransport

Author:
aabeling, gregw

Field Summary
static java.lang.String __DEFAULT_CALLBACK
           
 
Constructor Summary
JSONPTransport(boolean commented, java.lang.String jsonp)
           
 
Method Summary
 void complete()
           
 java.lang.String getJsonp()
           
 boolean isJSONCommented()
           
 boolean resumePoll()
           
 void send(org.cometd.Message message)
           
 void setJSONCommented(boolean commented)
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Field Detail

__DEFAULT_CALLBACK

public static final java.lang.String __DEFAULT_CALLBACK
See Also:
Constant Field Values
Constructor Detail

JSONPTransport

public JSONPTransport(boolean commented,
                      java.lang.String jsonp)
Method Detail

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()

getJsonp

public java.lang.String getJsonp()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isJSONCommented

public boolean isJSONCommented()
Returns:
the commented

setJSONCommented

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


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