/** * Redirects any HTTP request of type POST on 'fromPath' to 'toPath' with the provided redirect 'status' code. * * @param fromPath from path * @param toPath to path * @param status status code */ public void post(String fromPath, String toPath, Status status) { http.post(fromPath, redirectRoute(toPath, status)); }
/** * Redirects any HTTP request of type DELETE on 'fromPath' to 'toPath' with the provided redirect 'status' code. * * @param fromPath from path * @param toPath to path * @param status status code */ public void delete(String fromPath, String toPath, Status status) { http.delete(fromPath, redirectRoute(toPath, status)); }
/** * Redirects any HTTP request of type PUT on 'fromPath' to 'toPath' with the provided redirect 'status' code. * * @param fromPath from path * @param toPath to path * @param status status code */ public void put(String fromPath, String toPath, Status status) { http.put(fromPath, redirectRoute(toPath, status)); }
/** * Redirects any HTTP request of type GET on 'fromPath' to 'toPath' with the provided redirect 'status' code. * * @param fromPath from path * @param toPath to path * @param status status code */ public void get(String fromPath, String toPath, Status status) { http.get(fromPath, redirectRoute(toPath, status)); }
/** * Redirects any HTTP request of type GET on 'fromPath' to 'toPath' with the provided redirect 'status' code. * * @param fromPath from path * @param toPath to path * @param status status code */ public void get(String fromPath, String toPath, Status status) { http.get(fromPath, redirectRoute(toPath, status)); }
/** * Redirects any HTTP request of type POST on 'fromPath' to 'toPath' with the provided redirect 'status' code. * * @param fromPath from path * @param toPath to path * @param status status code */ public void post(String fromPath, String toPath, Status status) { http.post(fromPath, redirectRoute(toPath, status)); }
/** * Redirects any HTTP request of type DELETE on 'fromPath' to 'toPath' with the provided redirect 'status' code. * * @param fromPath from path * @param toPath to path * @param status status code */ public void delete(String fromPath, String toPath, Status status) { http.delete(fromPath, redirectRoute(toPath, status)); }
/** * Redirects any HTTP request of type PUT on 'fromPath' to 'toPath' with the provided redirect 'status' code. * * @param fromPath from path * @param toPath to path * @param status status code */ public void put(String fromPath, String toPath, Status status) { http.put(fromPath, redirectRoute(toPath, status)); }