com.ning.http.client
Class Response.ResponseBuilder

java.lang.Object
  extended by com.ning.http.client.Response.ResponseBuilder
Enclosing interface:
Response

public static class Response.ResponseBuilder
extends Object


Constructor Summary
Response.ResponseBuilder()
           
 
Method Summary
 Response.ResponseBuilder accumulate(HttpContent httpContent)
          Accumulate HttpContent in order to build a Response
 Response build()
          Build a Response instance
 void reset()
          Reset the internal state of this builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response.ResponseBuilder

public Response.ResponseBuilder()
Method Detail

accumulate

public Response.ResponseBuilder accumulate(HttpContent httpContent)
Accumulate HttpContent in order to build a Response

Parameters:
httpContent - HttpContent
Returns:
this

build

public Response build()
Build a Response instance

Returns:
a Response instance

reset

public void reset()
Reset the internal state of this builder.



Copyright © 2011. All Rights Reserved.