org.atmosphere.gwt.client.impl
Class XDomainRequest

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.atmosphere.gwt.client.impl.XDomainRequest

public class XDomainRequest
extends com.google.gwt.core.client.JavaScriptObject

References: - http://blogs.msdn.com/b/ieinternals/archive/2010/04/06/comet-streaming-in-internet-explorer-with-xmlhttprequest-and-xdomainrequest.aspx - http://msdn.microsoft.com/en-us/library/cc288060(VS.85).aspx - http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitations-and-workarounds.aspx

Author:
p.havelaar

Constructor Summary
protected XDomainRequest()
           
 
Method Summary
 void abort()
          The abort method terminates a pending send.
 void clearListener()
           
static XDomainRequest create()
           
 String getContentType()
           
 String getResponseText()
           
 int getTimeout()
           
static boolean isSupported()
           
 void openGET(String url)
          Creates a connection with a domain's server.
 void openPOST(String url)
          Creates a connection with a domain's server.
 void send()
          Transmits a empty string to the server for processing.
 void send(String data)
          Transmits a data string to the server for processing.
 void setListener(XDomainRequestListener listener)
           
 void setTimeout(int timeout)
          set the timeout in milliseconds
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XDomainRequest

protected XDomainRequest()
Method Detail

create

public static XDomainRequest create()

isSupported

public static boolean isSupported()

setListener

public final void setListener(XDomainRequestListener listener)

clearListener

public final void clearListener()

getContentType

public final String getContentType()

getResponseText

public final String getResponseText()
Returns:
the body of the response returned by the server.

setTimeout

public final void setTimeout(int timeout)
set the timeout in milliseconds

Parameters:
timeout -

getTimeout

public final int getTimeout()

abort

public final void abort()
The abort method terminates a pending send.


openGET

public final void openGET(String url)
Creates a connection with a domain's server.

Parameters:
url -

openPOST

public final void openPOST(String url)
Creates a connection with a domain's server.

Parameters:
url -

send

public final void send()
Transmits a empty string to the server for processing.


send

public final void send(String data)
Transmits a data string to the server for processing.

Parameters:
data -


Copyright © 2013. All Rights Reserved.