@Override public String toString() { return this.path(); }
@Override public String toString() { return this.path(); }
/** * Generates a 303 See Other result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result seeOther(Call call) { return new Result(SEE_OTHER, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 303 See Other result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result seeOther(Call call) { return new Result(SEE_OTHER, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 307 Temporary Redirect result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result temporaryRedirect(Call call) { return new Result(TEMPORARY_REDIRECT, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 302 Found result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result found(Call call) { return new Result(FOUND, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 301 Moved Permanently result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result movedPermanently(Call call) { return new Result(MOVED_PERMANENTLY, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 302 Found result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result found(Call call) { return new Result(FOUND, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 301 MOVED_PERMANENTLY simple result. * * @param call Call defining the url to redirect (typically comes from reverse router). */ public static Result movedPermanently(Call call) { return new Redirect(301, call.path()); }
/** * Generates a 303 SEE_OTHER simple result. * * @param call Call defining the url to redirect (typically comes from reverse router). */ public static Result seeOther(Call call) { return new Redirect(303, call.path()); }
/** * Generates a 301 Moved Permanently result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result movedPermanently(Call call) { return new Result(MOVED_PERMANENTLY, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 303 SEE_OTHER simple result. * * @param call Call defining the url to redirect (typically comes from reverse router). */ public static Result redirect(Call call) { return new Redirect(303, call.path()); }
/** * Generates a 303 See Other result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result redirect(Call call) { return new Result(SEE_OTHER, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 307 Temporary Redirect result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result temporaryRedirect(Call call) { return new Result(TEMPORARY_REDIRECT, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 302 Found result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result found(Call call) { return new Result(FOUND, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 303 See Other result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result seeOther(Call call) { return new Result(SEE_OTHER, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 303 See Other result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result redirect(Call call) { return new Result(SEE_OTHER, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 308 Permanent Redirect result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result permanentRedirect(Call call) { return new Result(PERMANENT_REDIRECT, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 307 Temporary Redirect result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result temporaryRedirect(Call call) { return new Result(TEMPORARY_REDIRECT, Collections.singletonMap(LOCATION, call.path())); }
/** * Generates a 308 Permanent Redirect result. * * @param call Call defining the url to redirect (typically comes from reverse router). * @return the result */ public static Result permanentRedirect(Call call) { return new Result(PERMANENT_REDIRECT, Collections.singletonMap(LOCATION, call.path())); }