public interface HttpResult extends View
HttpServletResponse
Modifier and Type | Method and Description |
---|---|
HttpResult |
addDateHeader(java.lang.String name,
long date) |
HttpResult |
addHeader(java.lang.String name,
java.lang.String value) |
HttpResult |
addIntHeader(java.lang.String name,
int value) |
HttpResult |
body(java.io.InputStream body) |
HttpResult |
body(java.io.Reader body) |
HttpResult |
body(java.lang.String body) |
<T> T |
movedPermanentlyTo(java.lang.Class<T> controller)
Deprecated.
use result.use(status()).movedPermanentlyTo(ClientsController.class).list(); instead
|
void |
movedPermanentlyTo(java.lang.String url)
Deprecated.
use result.use(status()).movedPermanentlyTo(url) instead
|
void |
sendError(int statusCode) |
void |
sendError(int statusCode,
java.lang.String message) |
void |
setStatusCode(int statusCode) |
void sendError(int statusCode)
void sendError(int statusCode, java.lang.String message)
void setStatusCode(int statusCode)
HttpResult addHeader(java.lang.String name, java.lang.String value)
HttpResult addIntHeader(java.lang.String name, int value)
HttpResult addDateHeader(java.lang.String name, long date)
HttpResult body(java.lang.String body)
HttpResult body(java.io.InputStream body)
HttpResult body(java.io.Reader body)
@Deprecated void movedPermanentlyTo(java.lang.String url)
@Deprecated <T> T movedPermanentlyTo(java.lang.Class<T> controller)
Copyright © 2013 Caelum. All Rights Reserved.