Package org.jclouds.http
Class HttpRequest.Builder<T extends HttpRequest.Builder<T>>
java.lang.Object
org.jclouds.http.HttpMessage.Builder<T>
org.jclouds.http.HttpRequest.Builder<T>
- Direct Known Subclasses:
GeneratedHttpRequest.Builder
- Enclosing class:
HttpRequest
public abstract static class HttpRequest.Builder<T extends HttpRequest.Builder<T>>
extends HttpMessage.Builder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected URI
protected com.google.common.collect.ImmutableList.Builder
<HttpRequestFilter> protected String
Fields inherited from class org.jclouds.http.HttpMessage.Builder
headers, payload
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFormParam
(String name, String... values) addFormParams
(com.google.common.collect.Multimap<String, String> parameters) Replaces the current payload with one that is a urlencoded payload including the following parameters and any formerly set.addQueryParam
(String name, Iterable<String> values) addQueryParam
(String name, String... values) addQueryParams
(com.google.common.collect.Multimap<String, String> parameters) build()
filter
(HttpRequestFilter filter) filters
(Iterable<HttpRequestFilter> filters) replaceFormParam
(String name, String... values) replaceFormParams
(com.google.common.collect.Multimap<String, String> parameters) Replaces the current payload with one that is a urlencoded payload including the following parameters and any formerly set.replacePath
(String path) replaceQueryParam
(String name, Iterable<String> values) replaceQueryParam
(String name, String... values) replaceQueryParams
(com.google.common.collect.Multimap<String, String> parameters) replaceQueryParams
(Map<String, String> parameters) Methods inherited from class org.jclouds.http.HttpMessage.Builder
addHeader, fromHttpMessage, headers, payload, payload, payload, payload, payload, payload, removeHeader, replaceHeader, replaceHeaders, self
-
Field Details
-
method
-
endpoint
-
filters
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
method
- See Also:
-
endpoint
- See Also:
-
endpoint
- See Also:
-
addQueryParam
- See Also:
-
addQueryParam
- See Also:
-
addQueryParams
- See Also:
-
replaceQueryParam
- See Also:
-
replaceQueryParam
- See Also:
-
replaceQueryParams
- See Also:
-
replaceQueryParams
- See Also:
-
replacePath
- See Also:
-
addFormParam
- See Also:
-
addFormParams
Replaces the current payload with one that is a urlencoded payload including the following parameters and any formerly set.- See Also:
-
replaceFormParam
- See Also:
-
replaceFormParams
Replaces the current payload with one that is a urlencoded payload including the following parameters and any formerly set.- See Also:
-
filters
- See Also:
-
filter
- See Also:
-
build
- Overrides:
build
in classHttpMessage.Builder<T extends HttpRequest.Builder<T>>
-
fromHttpRequest
-