Package org.atmosphere.gwt20.client
Class AtmosphereRequestConfig
- java.lang.Object
-
- com.google.gwt.core.client.JavaScriptObject
-
- 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
Nested Classes Modifier and Type Class Description static classAtmosphereRequestConfig.Flagsstatic classAtmosphereRequestConfig.Transport
-
Constructor Summary
Constructors Modifier Constructor Description protectedAtmosphereRequestConfig()
-
Method Summary
-
-
-
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:
setFlagsin interfaceRequestConfig
-
clearFlags
public void clearFlags(AtmosphereRequestConfig.Flags... flags)
- Specified by:
clearFlagsin interfaceRequestConfig
-
setHeader
public void setHeader(java.lang.String name, java.lang.String value)- Specified by:
setHeaderin interfaceRequestConfig
-
setMaxReconnectOnClose
public void setMaxReconnectOnClose(int maxReconnectOnClose)
- Specified by:
setMaxReconnectOnClosein interfaceRequestConfig
-
setContentType
public void setContentType(java.lang.String contentType)
- Specified by:
setContentTypein interfaceRequestConfig
-
setUrl
public void setUrl(java.lang.String url)
- Specified by:
setUrlin interfaceRequestConfig
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout)
- Specified by:
setConnectTimeoutin interfaceRequestConfig
-
setReconnectInterval
public void setReconnectInterval(int reconnectInterval)
- Specified by:
setReconnectIntervalin interfaceRequestConfig
-
setTimeout
public void setTimeout(int timeout)
- Specified by:
setTimeoutin interfaceRequestConfig
-
setLogLevel
public void setLogLevel(java.lang.String logLevel)
- Specified by:
setLogLevelin interfaceRequestConfig
-
setMaxRequest
public void setMaxRequest(int maxRequest)
- Specified by:
setMaxRequestin interfaceRequestConfig
-
setMaxStreamingLength
public void setMaxStreamingLength(int maxStreamingLength)
- Specified by:
setMaxStreamingLengthin interfaceRequestConfig
-
setMethod
public void setMethod(com.google.gwt.http.client.RequestBuilder.Method method)
- Specified by:
setMethodin interfaceRequestConfig
-
setFallbackMethod
public void setFallbackMethod(com.google.gwt.http.client.RequestBuilder.Method method)
- Specified by:
setFallbackMethodin interfaceRequestConfig
-
setTransport
public void setTransport(AtmosphereRequestConfig.Transport transport)
- Specified by:
setTransportin interfaceRequestConfig
-
setFallbackTransport
public void setFallbackTransport(AtmosphereRequestConfig.Transport transport)
- Specified by:
setFallbackTransportin interfaceRequestConfig
-
setOpenHandler
public void setOpenHandler(AtmosphereOpenHandler handler)
- Specified by:
setOpenHandlerin interfaceRequestConfig
-
setReopenHandler
public void setReopenHandler(AtmosphereReopenHandler handler)
- Specified by:
setReopenHandlerin interfaceRequestConfig
-
setCloseHandler
public void setCloseHandler(AtmosphereCloseHandler handler)
- Specified by:
setCloseHandlerin interfaceRequestConfig
-
setClientTimeoutHandler
public void setClientTimeoutHandler(AtmosphereClientTimeoutHandler handler)
- Specified by:
setClientTimeoutHandlerin interfaceRequestConfig
-
setMessageHandler
public void setMessageHandler(AtmosphereMessageHandler handler)
- Specified by:
setMessageHandlerin interfaceRequestConfig
-
setLocalMessageHandler
public void setLocalMessageHandler(AtmosphereMessageHandler handler)
- Specified by:
setLocalMessageHandlerin interfaceRequestConfig
-
setErrorHandler
public void setErrorHandler(AtmosphereErrorHandler handler)
- Specified by:
setErrorHandlerin interfaceRequestConfig
-
setReconnectHandler
public void setReconnectHandler(AtmosphereReconnectHandler handler)
- Specified by:
setReconnectHandlerin interfaceRequestConfig
-
setFailureToReconnectHandler
public void setFailureToReconnectHandler(AtmosphereFailureToReconnectHandler handler)
- Specified by:
setFailureToReconnectHandlerin interfaceRequestConfig
-
setMessagePublishedHandler
public void setMessagePublishedHandler(AtmosphereMessagePublishedHandler handler)
- Specified by:
setMessagePublishedHandlerin interfaceRequestConfig
-
setTransportFailureHandler
public void setTransportFailureHandler(AtmosphereTransportFailureHandler handler)
- Specified by:
setTransportFailureHandlerin interfaceRequestConfig
-
setOutboundSerializer
public void setOutboundSerializer(ClientSerializer serializer)
- Specified by:
setOutboundSerializerin interfaceRequestConfig
-
getOutboundSerializer
public ClientSerializer getOutboundSerializer()
- Specified by:
getOutboundSerializerin interfaceRequestConfig
-
-