|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.wasync.RequestBuilder<AtmosphereRequest.AtmosphereRequestBuilder>
org.atmosphere.wasync.impl.AtmosphereRequest.AtmosphereRequestBuilder
public static class AtmosphereRequest.AtmosphereRequestBuilder
A builder for AtmosphereRequest. This builder configure the Atmosphere Protocol on the request object.
| Field Summary |
|---|
| Fields inherited from class org.atmosphere.wasync.RequestBuilder |
|---|
decoders, derived, encoders, headers, method, queryString, resolver, transports, uri |
| Constructor Summary | |
|---|---|
AtmosphereRequest.AtmosphereRequestBuilder()
|
|
| Method Summary | |
|---|---|
AtmosphereRequest |
build()
Build a Request. |
AtmosphereRequest.AtmosphereRequestBuilder |
cache(AtmosphereRequest.CACHE c)
Set the AtmosphereRequest.CACHE used by the server side implementation of Atmosphere. |
AtmosphereRequest.AtmosphereRequestBuilder |
enableProtocol(boolean enableProtocol)
Set to true to enable the Atmosphere Protocol. |
AtmosphereRequest.AtmosphereRequestBuilder |
trackMessageLength(boolean trackMessageLength)
Turn on/off tracking message. |
AtmosphereRequest.AtmosphereRequestBuilder |
trackMessageLengthDelimiter(java.lang.String trackMessageLengthDelimiter)
Set the tracking delimiter. |
AtmosphereRequest.AtmosphereRequestBuilder |
transport(Request.TRANSPORT t)
The Request.TRANSPORT to use. |
| Methods inherited from class org.atmosphere.wasync.RequestBuilder |
|---|
decoder, decoders, encoder, encoders, header, headers, method, method, queryString, queryString, resolver, resolver, transports, uri, uri |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtmosphereRequest.AtmosphereRequestBuilder()
| Method Detail |
|---|
public AtmosphereRequest.AtmosphereRequestBuilder transport(Request.TRANSPORT t)
Request.TRANSPORT to use. This method can be invoked several time and the library will loop over the list
until one Request.TRANSPORT succeed. The first added is always the first used.
transport in class RequestBuilder<AtmosphereRequest.AtmosphereRequestBuilder>public AtmosphereRequest.AtmosphereRequestBuilder cache(AtmosphereRequest.CACHE c)
AtmosphereRequest.CACHE used by the server side implementation of Atmosphere.
c - the cache type.
public AtmosphereRequest.AtmosphereRequestBuilder trackMessageLength(boolean trackMessageLength)
trackMessageLength - true to enable.
public AtmosphereRequest.AtmosphereRequestBuilder trackMessageLengthDelimiter(java.lang.String trackMessageLengthDelimiter)
trackMessageLengthDelimiter - true to enable.
public AtmosphereRequest.AtmosphereRequestBuilder enableProtocol(boolean enableProtocol)
enableProtocol - false to disable.
public AtmosphereRequest build()
Request. IMPORTANT: if you are using stateful Decoder, you must NOT call this method
more than once to prevent response corruption.
Important: You cannot call the build() method more than once if enableProtocol or trackMessageLength
are set to true.
build in class RequestBuilder<AtmosphereRequest.AtmosphereRequestBuilder>Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||