public interface HttpResult extends View
HttpServletResponse
Modifier and Type | Method and Description |
---|---|
HttpResult |
addDateHeader(String name,
long date) |
HttpResult |
addHeader(String name,
String value) |
HttpResult |
addIntHeader(String name,
int value) |
HttpResult |
body(InputStream body) |
HttpResult |
body(Reader body) |
HttpResult |
body(String body) |
void |
sendError(int statusCode) |
void |
sendError(int statusCode,
String message) |
void |
setStatusCode(int statusCode) |
void sendError(int statusCode)
void sendError(int statusCode, String message)
void setStatusCode(int statusCode)
HttpResult addHeader(String name, String value)
HttpResult addIntHeader(String name, int value)
HttpResult addDateHeader(String name, long date)
HttpResult body(String body)
HttpResult body(InputStream body)
HttpResult body(Reader body)
Copyright © 2014 Caelum. All rights reserved.