@Test public void testRedirectTemporary() throws Exception { Result result = new Result(200).redirectTemporary("/foo"); assertThat(result.getStatusCode()).isEqualTo(Status.TEMPORARY_REDIRECT); assertThat(result.getHeaders().get(HeaderNames.LOCATION)).isEqualTo("/foo"); }
public Result redirectTemporary(String url) { status(Status.TEMPORARY_REDIRECT); with(HeaderNames.LOCATION, url); return this; }
Result implements Status { public Result redirectTemporary(String url) { status(Status.TEMPORARY_REDIRECT); with(HeaderNames.LOCATION, url); return this; } }
Result implements Status { public Result redirectTemporary(String url) { status(Status.TEMPORARY_REDIRECT); with(HeaderNames.LOCATION, url); return this; } Result(int statusCode);  Result(); }
Result implements Status { public Result redirectTemporary(String url) { status(Status.TEMPORARY_REDIRECT); with(HeaderNames.LOCATION, url); return this; } Result(int statusCode);  Result(); Renderable<?> getRenderable(); Result render(Renderable<?> renderable); Result render(Object object); Result render(JsonNode node); Result render(String padding, JsonNode node); Result render(Document document); Result render(String content); Result render(CharSequence content); Result render(StringBuilder content); Result render(StringBuffer content); String getContentType(); Charset getCharset(); Result with(Charset charset); String getFullContentType(); Result as(String contentType); Map<String, String> getHeaders(); Result with(String headerName, String headerContent); Cookie getCookie(String cookieName); List<Cookie> getCookies(); Result with(Cookie cookie); Result without(String name); Result withoutCompression(); Result discard(String name); Result discard(String... names); int getStatusCode(); Result status(int statusCode); Result redirect(String url); Result redirectTemporary(String url); Result html(); Result json(); Result xml(); Result noCache(); Result noContentIfNone(); Result addToSession(String key, String value); Result addToFlash(String key, String value); }
Result implements Status { public Result redirectTemporary(String url) { status(Status.TEMPORARY_REDIRECT); with(HeaderNames.LOCATION, url); return this; } Result(int statusCode);  Result(); Renderable<?> getRenderable(); Result render(Renderable<?> renderable); Result render(Object object); Result render(JsonNode node); Result render(String padding, JsonNode node); Result render(Document document); Result render(String content); Result render(CharSequence content); Result render(StringBuilder content); Result render(StringBuffer content); String getContentType(); Charset getCharset(); Result with(Charset charset); String getFullContentType(); Result as(String contentType); Map<String, String> getHeaders(); Result with(String headerName, String headerContent); Cookie getCookie(String cookieName); List<Cookie> getCookies(); Result with(Cookie cookie); Result without(String name); Result withoutCompression(); Result discard(String name); Result discard(String... names); int getStatusCode(); Result status(int statusCode); Result redirect(String url); Result redirectTemporary(String url); Result html(); Result json(); Result xml(); Result noCache(); Result noContentIfNone(); Result addToSession(String key, String value); Result addToFlash(String key, String value);  }