Package org.jclouds.http
Class HttpResponse.Builder<T extends HttpResponse.Builder<T>>
- java.lang.Object
-
- org.jclouds.http.HttpMessage.Builder<T>
-
- org.jclouds.http.HttpResponse.Builder<T>
-
- Enclosing class:
- HttpResponse
public abstract static class HttpResponse.Builder<T extends HttpResponse.Builder<T>> extends HttpMessage.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
message
protected int
statusCode
-
Fields inherited from class org.jclouds.http.HttpMessage.Builder
headers, payload
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse
build()
T
fromHttpResponse(HttpResponse in)
T
message(String message)
T
statusCode(int statusCode)
-
Methods inherited from class org.jclouds.http.HttpMessage.Builder
addHeader, fromHttpMessage, headers, payload, payload, payload, payload, payload, payload, removeHeader, replaceHeader, replaceHeaders, self
-
-
-
-
Field Detail
-
statusCode
protected int statusCode
-
message
protected String message
-
-
Method Detail
-
statusCode
public T statusCode(int statusCode)
- See Also:
HttpResponse.getStatusCode()
-
message
public T message(@Nullable String message)
- See Also:
HttpResponse.getMessage()
-
build
public HttpResponse build()
- Overrides:
build
in classHttpMessage.Builder<T extends HttpResponse.Builder<T>>
-
fromHttpResponse
public T fromHttpResponse(HttpResponse in)
-
-