/** * A redirect that uses 303 see other. * * @param url * The url used as redirect target. * @return A nicely configured result with status code 303 and the url set * as Location header. */ public Result redirect(String url) { status(Result.SC_303_SEE_OTHER); addHeader(Result.LOCATION, url); return this; }
/** * A redirect that uses 307 see other. * * @param url * The url used as redirect target. * @return A nicely configured result with status code 307 and the url set * as Location header. */ public Result redirectTemporary(String url) { status(Result.SC_307_TEMPORARY_REDIRECT); addHeader(Result.LOCATION, url); return this; } /**
result.status(Result.SC_304_NOT_MODIFIED);
result.status(200);