public abstract static class HttpResponse.Builder<T extends HttpResponse.Builder<T>> extends HttpMessage.Builder<T>
Modifier and Type | Field and Description |
---|---|
protected String |
message |
protected int |
statusCode |
headers, payload
Constructor and Description |
---|
HttpResponse.Builder() |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
build() |
T |
fromHttpResponse(HttpResponse in) |
T |
message(String message) |
T |
statusCode(int statusCode) |
addHeader, fromHttpMessage, headers, payload, payload, payload, payload, payload, removeHeader, replaceHeader, replaceHeaders, self
protected int statusCode
protected String message
public T statusCode(int statusCode)
HttpResponse.getStatusCode()
public T message(@Nullable String message)
HttpResponse.getMessage()
public HttpResponse build()
build
in class HttpMessage.Builder<T extends HttpResponse.Builder<T>>
public T fromHttpResponse(HttpResponse in)
Copyright © 2009-2013 jclouds. All Rights Reserved.