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 java.lang.Object
implements Request

Default implementation of the Request

Author:
Jeanfrancois Arcand

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
 java.util.List<Decoder<?,?>> decoders()
          The list of Decoder to use before the request is sent.
 java.util.List<Encoder<?,?>> encoders()
          The list of Encoder to use before the request is sent.
 FunctionResolver functionResolver()
          The FunctionResolver associated with that request.
 java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> headers()
          Return the list of headers
 Request.METHOD method()
          The method
 java.util.Map<java.lang.String,java.util.List<java.lang.String>> queryString()
          Return the list of query params
 java.util.List<Request.TRANSPORT> transport()
          The list of transports to try
 java.lang.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 java.util.List<Request.TRANSPORT> transport()
The list of transports to try

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

method

public Request.METHOD method()
The method

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

headers

public java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> headers()
Return the list of headers

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

queryString

public java.util.Map<java.lang.String,java.util.List<java.lang.String>> queryString()
Return the list of query params

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

encoders

public java.util.List<Encoder<?,?>> encoders()
The list of Encoder to use before the request is sent.

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

decoders

public java.util.List<Decoder<?,?>> decoders()
The list of Decoder to use before the request is sent.

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

uri

public java.lang.String uri()
The targetted URI

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

functionResolver

public FunctionResolver functionResolver()
The FunctionResolver associated with that request.

Specified by:
functionResolver in interface Request
Returns:
The FunctionResolver


Copyright © 2014. All Rights Reserved.