public final class Redirect extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Redirect.Status
The available redirect status codes.
|
Modifier and Type | Method and Description |
---|---|
void |
any(String fromPath,
String toPath)
Redirects any HTTP request of type GET, POST, PUT, DELETE on 'fromPath' to 'toPath'
|
void |
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.
|
void |
delete(String fromPath,
String toPath)
Redirects any HTTP request of type DELETE on 'fromPath' to 'toPath'
|
void |
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.
|
void |
get(String fromPath,
String toPath)
Redirects any HTTP request of type GET on 'fromPath' to 'toPath'
|
void |
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.
|
void |
post(String fromPath,
String toPath)
Redirects any HTTP request of type POST on 'fromPath' to 'toPath'
|
void |
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.
|
void |
put(String fromPath,
String toPath)
Redirects any HTTP request of type PUT on 'fromPath' to 'toPath'
|
void |
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.
|
public void any(String fromPath, String toPath)
public void get(String fromPath, String toPath)
public void post(String fromPath, String toPath)
public void put(String fromPath, String toPath)
public void delete(String fromPath, String toPath)
public void any(String fromPath, String toPath, Redirect.Status status)
public void get(String fromPath, String toPath, Redirect.Status status)
public void post(String fromPath, String toPath, Redirect.Status status)
public void put(String fromPath, String toPath, Redirect.Status status)
public void delete(String fromPath, String toPath, Redirect.Status status)
Copyright © 2016. All rights reserved.