org.atmosphere.cpr
Class AtmosphereRequest.Builder

java.lang.Object
  extended by org.atmosphere.cpr.AtmosphereRequest.Builder
Enclosing class:
AtmosphereRequest

public static final class AtmosphereRequest.Builder
extends Object


Field Summary
 String contentType
           
 String data
           
 byte[] dataBytes
           
 String encoding
           
 Map<String,String> headers
           
 int length
           
 String methodType
           
 int offset
           
 String pathInfo
           
 javax.servlet.http.HttpServletRequest request
           
 
Constructor Summary
AtmosphereRequest.Builder()
           
 
Method Summary
 AtmosphereRequest.Builder body(byte[] dataBytes, int offset, int length)
           
 AtmosphereRequest.Builder body(String data)
           
 AtmosphereRequest build()
           
 AtmosphereRequest.Builder contentType(String contentType)
           
 AtmosphereRequest.Builder encoding(String encoding)
           
 AtmosphereRequest.Builder headers(Map<String,String> headers)
           
 AtmosphereRequest.Builder method(String methodType)
           
 AtmosphereRequest.Builder pathInfo(String pathInfo)
           
 AtmosphereRequest.Builder request(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

request

public javax.servlet.http.HttpServletRequest request

pathInfo

public String pathInfo

dataBytes

public byte[] dataBytes

offset

public int offset

length

public int length

encoding

public String encoding

methodType

public String methodType

contentType

public String contentType

data

public String data

headers

public Map<String,String> headers
Constructor Detail

AtmosphereRequest.Builder

public AtmosphereRequest.Builder()
Method Detail

headers

public AtmosphereRequest.Builder headers(Map<String,String> headers)

request

public AtmosphereRequest.Builder request(javax.servlet.http.HttpServletRequest request)

pathInfo

public AtmosphereRequest.Builder pathInfo(String pathInfo)

body

public AtmosphereRequest.Builder body(byte[] dataBytes,
                                      int offset,
                                      int length)

encoding

public AtmosphereRequest.Builder encoding(String encoding)

method

public AtmosphereRequest.Builder method(String methodType)

contentType

public AtmosphereRequest.Builder contentType(String contentType)

body

public AtmosphereRequest.Builder body(String data)

build

public AtmosphereRequest build()


Copyright © 2011. All Rights Reserved.