Uses of Enum Class
spark.Redirect.Status
Packages that use Redirect.Status
-
Uses of Redirect.Status in spark
Methods in spark that return Redirect.StatusModifier and TypeMethodDescriptionstatic Redirect.StatusReturns the enum constant of this class with the specified name.static Redirect.Status[]Redirect.Status.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in spark with parameters of type Redirect.StatusModifier and TypeMethodDescriptionvoidRedirect.any(String fromPath, String toPath, Redirect.Status status) Redirects any HTTP request of type GET, POST, PUT, DELETE on 'fromPath' to 'toPath' with the provided redirect 'status' code.voidRedirect.delete(String fromPath, String toPath, Redirect.Status status) Redirects any HTTP request of type DELETE on 'fromPath' to 'toPath' with the provided redirect 'status' code.voidRedirect.get(String fromPath, String toPath, Redirect.Status status) Redirects any HTTP request of type GET on 'fromPath' to 'toPath' with the provided redirect 'status' code.voidRedirect.post(String fromPath, String toPath, Redirect.Status status) Redirects any HTTP request of type POST on 'fromPath' to 'toPath' with the provided redirect 'status' code.voidRedirect.put(String fromPath, String toPath, Redirect.Status status) Redirects any HTTP request of type PUT on 'fromPath' to 'toPath' with the provided redirect 'status' code.private static RouteRedirect.redirectRoute(String toPath, Redirect.Status status)