org.atmosphere.gwt20.client
Class AtmosphereRequestConfig

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.atmosphere.gwt20.client.AtmosphereRequestConfig
All Implemented Interfaces:
RequestConfig

public final class AtmosphereRequestConfig
extends com.google.gwt.core.client.JavaScriptObject
implements RequestConfig

Author:
p.havelaar

Nested Class Summary
static class AtmosphereRequestConfig.Flags
           
static class AtmosphereRequestConfig.Transport
           
 
Constructor Summary
protected AtmosphereRequestConfig()
           
 
Method Summary
 void clearFlags(AtmosphereRequestConfig.Flags... flags)
           
static AtmosphereRequestConfig create(ClientSerializer serializer)
          use the same serializer for inbound and outbound
static AtmosphereRequestConfig create(ClientSerializer inbound, ClientSerializer outbound)
          specify a different serializer for inbound and outbound
 ClientSerializer getOutboundSerializer()
           
 void setClientTimeoutHandler(AtmosphereClientTimeoutHandler handler)
           
 void setCloseHandler(AtmosphereCloseHandler handler)
           
 void setConnectTimeout(int connectTimeout)
           
 void setContentType(String contentType)
           
 void setErrorHandler(AtmosphereErrorHandler handler)
           
 void setFailureToReconnectHandler(AtmosphereFailureToReconnectHandler handler)
           
 void setFallbackMethod(com.google.gwt.http.client.RequestBuilder.Method method)
           
 void setFallbackTransport(AtmosphereRequestConfig.Transport transport)
           
 void setFlags(AtmosphereRequestConfig.Flags... flags)
           
 void setHeader(String name, String value)
           
 void setLocalMessageHandler(AtmosphereMessageHandler handler)
           
 void setLogLevel(String logLevel)
           
 void setMaxReconnectOnClose(int maxReconnectOnClose)
           
 void setMaxRequest(int maxRequest)
           
 void setMaxStreamingLength(int maxStreamingLength)
           
 void setMessageHandler(AtmosphereMessageHandler handler)
           
 void setMessagePublishedHandler(AtmosphereMessagePublishedHandler handler)
           
 void setMethod(com.google.gwt.http.client.RequestBuilder.Method method)
           
 void setOpenHandler(AtmosphereOpenHandler handler)
           
 void setOutboundSerializer(ClientSerializer serializer)
           
 void setReconnectHandler(AtmosphereReconnectHandler handler)
           
 void setReconnectInterval(int reconnectInterval)
           
 void setReopenHandler(AtmosphereReopenHandler handler)
           
 void setTimeout(int timeout)
           
 void setTransport(AtmosphereRequestConfig.Transport transport)
           
 void setTransportFailureHandler(AtmosphereTransportFailureHandler handler)
           
 void setUrl(String url)
           
 
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

AtmosphereRequestConfig

protected AtmosphereRequestConfig()
Method Detail

create

public static AtmosphereRequestConfig create(ClientSerializer serializer)
use the same serializer for inbound and outbound

Parameters:
serializer -
Returns:

create

public static AtmosphereRequestConfig create(ClientSerializer inbound,
                                             ClientSerializer outbound)
specify a different serializer for inbound and outbound

Parameters:
inbound -
outbound -
Returns:

setFlags

public void setFlags(AtmosphereRequestConfig.Flags... flags)
Specified by:
setFlags in interface RequestConfig

clearFlags

public void clearFlags(AtmosphereRequestConfig.Flags... flags)
Specified by:
clearFlags in interface RequestConfig

setHeader

public void setHeader(String name,
                      String value)
Specified by:
setHeader in interface RequestConfig

setMaxReconnectOnClose

public void setMaxReconnectOnClose(int maxReconnectOnClose)
Specified by:
setMaxReconnectOnClose in interface RequestConfig

setContentType

public void setContentType(String contentType)
Specified by:
setContentType in interface RequestConfig

setUrl

public void setUrl(String url)
Specified by:
setUrl in interface RequestConfig

setConnectTimeout

public void setConnectTimeout(int connectTimeout)
Specified by:
setConnectTimeout in interface RequestConfig

setReconnectInterval

public void setReconnectInterval(int reconnectInterval)
Specified by:
setReconnectInterval in interface RequestConfig

setTimeout

public void setTimeout(int timeout)
Specified by:
setTimeout in interface RequestConfig

setLogLevel

public void setLogLevel(String logLevel)
Specified by:
setLogLevel in interface RequestConfig

setMaxRequest

public void setMaxRequest(int maxRequest)
Specified by:
setMaxRequest in interface RequestConfig

setMaxStreamingLength

public void setMaxStreamingLength(int maxStreamingLength)
Specified by:
setMaxStreamingLength in interface RequestConfig

setMethod

public void setMethod(com.google.gwt.http.client.RequestBuilder.Method method)
Specified by:
setMethod in interface RequestConfig

setFallbackMethod

public void setFallbackMethod(com.google.gwt.http.client.RequestBuilder.Method method)
Specified by:
setFallbackMethod in interface RequestConfig

setTransport

public void setTransport(AtmosphereRequestConfig.Transport transport)
Specified by:
setTransport in interface RequestConfig

setFallbackTransport

public void setFallbackTransport(AtmosphereRequestConfig.Transport transport)
Specified by:
setFallbackTransport in interface RequestConfig

setOpenHandler

public void setOpenHandler(AtmosphereOpenHandler handler)
Specified by:
setOpenHandler in interface RequestConfig

setReopenHandler

public void setReopenHandler(AtmosphereReopenHandler handler)
Specified by:
setReopenHandler in interface RequestConfig

setCloseHandler

public void setCloseHandler(AtmosphereCloseHandler handler)
Specified by:
setCloseHandler in interface RequestConfig

setClientTimeoutHandler

public void setClientTimeoutHandler(AtmosphereClientTimeoutHandler handler)
Specified by:
setClientTimeoutHandler in interface RequestConfig

setMessageHandler

public void setMessageHandler(AtmosphereMessageHandler handler)
Specified by:
setMessageHandler in interface RequestConfig

setLocalMessageHandler

public void setLocalMessageHandler(AtmosphereMessageHandler handler)
Specified by:
setLocalMessageHandler in interface RequestConfig

setErrorHandler

public void setErrorHandler(AtmosphereErrorHandler handler)
Specified by:
setErrorHandler in interface RequestConfig

setReconnectHandler

public void setReconnectHandler(AtmosphereReconnectHandler handler)
Specified by:
setReconnectHandler in interface RequestConfig

setFailureToReconnectHandler

public void setFailureToReconnectHandler(AtmosphereFailureToReconnectHandler handler)
Specified by:
setFailureToReconnectHandler in interface RequestConfig

setMessagePublishedHandler

public void setMessagePublishedHandler(AtmosphereMessagePublishedHandler handler)
Specified by:
setMessagePublishedHandler in interface RequestConfig

setTransportFailureHandler

public void setTransportFailureHandler(AtmosphereTransportFailureHandler handler)
Specified by:
setTransportFailureHandler in interface RequestConfig

setOutboundSerializer

public void setOutboundSerializer(ClientSerializer serializer)
Specified by:
setOutboundSerializer in interface RequestConfig

getOutboundSerializer

public ClientSerializer getOutboundSerializer()
Specified by:
getOutboundSerializer in interface RequestConfig


Copyright © 2015. All Rights Reserved.