/** * Redirects any HTTP request of type POST on 'fromPath' to 'toPath' * * @param fromPath from path * @param toPath to path */ public void post(String fromPath, String toPath) { post(fromPath, toPath, null); }
/** * Redirects any HTTP request of type GET, POST, PUT, 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 any(String fromPath, String toPath, Status status) { get(fromPath, toPath, status); post(fromPath, toPath, status); put(fromPath, toPath, status); delete(fromPath, toPath, status); }
/** * Redirects any HTTP request of type POST on 'fromPath' to 'toPath' * * @param fromPath from path * @param toPath to path */ public void post(String fromPath, String toPath) { post(fromPath, toPath, null); }
/** * Redirects any HTTP request of type GET, POST, PUT, 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 any(String fromPath, String toPath, Status status) { get(fromPath, toPath, status); post(fromPath, toPath, status); put(fromPath, toPath, status); delete(fromPath, toPath, status); }