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

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

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


Field Summary
protected  URI endpoint
           
protected  String method
           
protected  List<HttpRequestFilter> requestFilters
           
protected  char[] skips
           
 
Fields inherited from class org.jclouds.http.HttpMessage.Builder
headers, payload
 
Constructor Summary
HttpRequest.Builder()
           
 
Method Summary
 T build()
           
 HttpRequest.Builder<T> endpoint(URI endpoint)
           
 HttpRequest.Builder<T> filters(List<HttpRequestFilter> requestFilters)
           
static
<X extends HttpRequest>
HttpRequest.Builder<X>
from(X input)
           
 HttpRequest.Builder<T> headers(com.google.common.collect.Multimap<String,String> headers)
           
 HttpRequest.Builder<T> method(String method)
           
 HttpRequest.Builder<T> payload(Payload payload)
           
 HttpRequest.Builder<T> skips(char[] skips)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

protected String method

endpoint

protected URI endpoint

skips

protected char[] skips

requestFilters

protected List<HttpRequestFilter> requestFilters
Constructor Detail

HttpRequest.Builder

public HttpRequest.Builder()
Method Detail

filters

public HttpRequest.Builder<T> filters(List<HttpRequestFilter> requestFilters)

method

public HttpRequest.Builder<T> method(String method)

endpoint

public HttpRequest.Builder<T> endpoint(URI endpoint)

skips

public HttpRequest.Builder<T> skips(char[] skips)

payload

public HttpRequest.Builder<T> payload(Payload payload)
Overrides:
payload in class HttpMessage.Builder<T extends HttpRequest>

headers

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

build

public T build()
Overrides:
build in class HttpMessage.Builder<T extends HttpRequest>

from

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


Copyright © 2009-2011 jclouds. All Rights Reserved.