org.atmosphere.wasync.impl
Class AtmosphereClient

java.lang.Object
  extended by org.atmosphere.wasync.impl.AtmosphereClient
All Implemented Interfaces:
Client<AtmosphereRequest.AtmosphereRequestBuilder>

public class AtmosphereClient
extends Object
implements Client<AtmosphereRequest.AtmosphereRequestBuilder>


Constructor Summary
AtmosphereClient()
           
 
Method Summary
 Socket create()
          Create a Socket
 Socket create(Options options)
          Create a Socket configured using the Options
protected  Socket getSocket(com.ning.http.client.AsyncHttpClient asyncHttpClient, Options options)
           
 AtmosphereRequest.AtmosphereRequestBuilder newRequestBuilder()
          Return a RequestBuilder
 AtmosphereRequest.AtmosphereRequestBuilder newRequestBuilder(Class<AtmosphereRequest.AtmosphereRequestBuilder> clazz)
          Create a new RequestBuilder based on the class' implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtmosphereClient

public AtmosphereClient()
Method Detail

create

public Socket create()
Description copied from interface: Client
Create a Socket

Specified by:
create in interface Client<AtmosphereRequest.AtmosphereRequestBuilder>
Returns:
Socket

create

public Socket create(Options options)
Description copied from interface: Client
Create a Socket configured using the Options

Specified by:
create in interface Client<AtmosphereRequest.AtmosphereRequestBuilder>
Returns:
Socket

newRequestBuilder

public AtmosphereRequest.AtmosphereRequestBuilder newRequestBuilder(Class<AtmosphereRequest.AtmosphereRequestBuilder> clazz)
Description copied from interface: Client
Create a new RequestBuilder based on the class' implementation.

Specified by:
newRequestBuilder in interface Client<AtmosphereRequest.AtmosphereRequestBuilder>
Parameters:
clazz - an impplementation of RequestBuilder
Returns:
a RequestBuilder

getSocket

protected Socket getSocket(com.ning.http.client.AsyncHttpClient asyncHttpClient,
                           Options options)

newRequestBuilder

public AtmosphereRequest.AtmosphereRequestBuilder newRequestBuilder()
Description copied from interface: Client
Return a RequestBuilder

Specified by:
newRequestBuilder in interface Client<AtmosphereRequest.AtmosphereRequestBuilder>
Returns:
a RequestBuilder


Copyright © 2013. All Rights Reserved.