public static class WebResponse.Builder<T extends WebResponse.Builder> extends Object
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(WebResponse source) |
Modifier and Type | Method and Description |
---|---|
T |
body(Object body) |
WebResponse |
build() |
T |
clearCookies() |
T |
clearHeaders() |
T |
contentType(com.google.common.net.MediaType contentType) |
T |
cookie(javax.servlet.http.Cookie cookie) |
T |
cookies(List<javax.servlet.http.Cookie> cookies) |
T |
header(String key,
String value) |
T |
headers(Map<String,String> headers) |
T |
status(HttpStatus status) |
T |
webSocket(WebSocketConfig webSocket) |
protected Builder()
protected Builder(WebResponse source)
public T clearHeaders()
public T cookie(javax.servlet.http.Cookie cookie)
public T clearCookies()
public T contentType(com.google.common.net.MediaType contentType)
public T status(HttpStatus status)
public T webSocket(WebSocketConfig webSocket)
public WebResponse build()