tech.greenfield.vertx.irked.helpers.Redirect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of irked-vertx Show documentation
Show all versions of irked-vertx Show documentation
Opinionated framework for vertx-web route configuration and dispatch
package tech.greenfield.vertx.irked.helpers;
import tech.greenfield.vertx.irked.status.Found;
@SuppressWarnings("serial")
public class Redirect extends Found {
public Redirect(String location) {
addHeader("Location", location);
}
public Redirect(String message, String location) {
super(message);
addHeader("Location", location);
}
}