org.jclouds.http
Class HttpMessage.Builder<T extends HttpMessage>

java.lang.Object
  extended by org.jclouds.http.HttpMessage.Builder<T>
Direct Known Subclasses:
HttpRequest.Builder, HttpResponse.Builder
Enclosing class:
HttpMessage

public static class HttpMessage.Builder<T extends HttpMessage>
extends Object


Field Summary
protected  com.google.common.collect.Multimap<String,String> headers
           
protected  Payload payload
           
 
Constructor Summary
HttpMessage.Builder()
           
 
Method Summary
 T build()
           
static
<X extends HttpMessage>
HttpMessage.Builder<X>
from(X input)
           
 HttpMessage.Builder<T> headers(com.google.common.collect.Multimap<String,String> headers)
           
 HttpMessage.Builder<T> payload(Payload payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

payload

protected Payload payload

headers

protected com.google.common.collect.Multimap<String,String> headers
Constructor Detail

HttpMessage.Builder

public HttpMessage.Builder()
Method Detail

payload

public HttpMessage.Builder<T> payload(Payload payload)

headers

public HttpMessage.Builder<T> headers(com.google.common.collect.Multimap<String,String> headers)

build

public T build()

from

public static <X extends HttpMessage> HttpMessage.Builder<X> from(X input)


Copyright © 2009-2011 jclouds. All Rights Reserved.