org.jclouds.http
Class HttpResponse.Builder

java.lang.Object
  extended by org.jclouds.http.HttpMessage.Builder
      extended by org.jclouds.http.HttpResponse.Builder
Enclosing class:
HttpResponse

public static class HttpResponse.Builder
extends HttpMessage.Builder


Field Summary
 
Fields inherited from class org.jclouds.http.HttpMessage.Builder
headers, payload
 
Constructor Summary
HttpResponse.Builder()
           
 
Method Summary
 HttpResponse build()
           
static HttpResponse.Builder from(HttpResponse input)
           
 HttpResponse.Builder headers(com.google.common.collect.Multimap<String,String> headers)
           
 HttpResponse.Builder message(String message)
           
 HttpResponse.Builder payload(Payload payload)
           
 HttpResponse.Builder statusCode(int statusCode)
           
 
Methods inherited from class org.jclouds.http.HttpMessage.Builder
from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponse.Builder

public HttpResponse.Builder()
Method Detail

message

public HttpResponse.Builder message(String message)

statusCode

public HttpResponse.Builder statusCode(int statusCode)

payload

public HttpResponse.Builder payload(Payload payload)
Overrides:
payload in class HttpMessage.Builder

headers

public HttpResponse.Builder headers(com.google.common.collect.Multimap<String,String> headers)
Overrides:
headers in class HttpMessage.Builder

build

public HttpResponse build()
Overrides:
build in class HttpMessage.Builder

from

public static HttpResponse.Builder from(HttpResponse input)


Copyright © 2009-2012 jclouds. All Rights Reserved.