org.atmosphere.wasync.impl
Class DefaultRequest<T extends RequestBuilder>

java.lang.Object
  extended by org.atmosphere.wasync.impl.DefaultRequest<T>
All Implemented Interfaces:
Request
Direct Known Subclasses:
AtmosphereRequest

public class DefaultRequest<T extends RequestBuilder>
extends Object
implements Request


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.atmosphere.wasync.Request
Request.METHOD, Request.TRANSPORT
 
Field Summary
protected  T builder
           
 
Constructor Summary
protected DefaultRequest(T builder)
           
 
Method Summary
 List<Decoder<?,?>> decoders()
          The list of Decoder to use before the request is sent.
 List<Encoder<?,?>> encoders()
          The list of Encoder to use before the request is sent.
 FunctionResolver functionResolver()
          The FunctionResolver associated with that request.
 Map<String,Collection<String>> headers()
          Return the list of headers
 Request.METHOD method()
          The method
 Map<String,List<String>> queryString()
          Return the list of query params
 List<Request.TRANSPORT> transport()
          The list of transports to try
 String uri()
          The targetted URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

builder

protected final T extends RequestBuilder builder
Constructor Detail

DefaultRequest

protected DefaultRequest(T builder)
Method Detail

transport

public List<Request.TRANSPORT> transport()
Description copied from interface: Request
The list of transports to try

Specified by:
transport in interface Request
Returns:
a Request.TRANSPORT

method

public Request.METHOD method()
Description copied from interface: Request
The method

Specified by:
method in interface Request
Returns:
a Request.METHOD

headers

public Map<String,Collection<String>> headers()
Description copied from interface: Request
Return the list of headers

Specified by:
headers in interface Request
Returns:
a Map of headers

queryString

public Map<String,List<String>> queryString()
Description copied from interface: Request
Return the list of query params

Specified by:
queryString in interface Request
Returns:
a Map of headers

encoders

public List<Encoder<?,?>> encoders()
Description copied from interface: Request
The list of Encoder to use before the request is sent.

Specified by:
encoders in interface Request
Returns:
The list of Encoder

decoders

public List<Decoder<?,?>> decoders()
Description copied from interface: Request
The list of Decoder to use before the request is sent.

Specified by:
decoders in interface Request
Returns:
The list of Decoder

uri

public String uri()
Description copied from interface: Request
The targetted URI

Specified by:
uri in interface Request
Returns:
the targetted URI

functionResolver

public FunctionResolver functionResolver()
Description copied from interface: Request
The FunctionResolver associated with that request.

Specified by:
functionResolver in interface Request
Returns:
The FunctionResolver


Copyright © 2013. All Rights Reserved.