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)
fromPath - from pathtoPath - to pathpublic void get(String fromPath, String toPath)
fromPath - from pathtoPath - to pathpublic void post(String fromPath, String toPath)
fromPath - from pathtoPath - to pathpublic void put(String fromPath, String toPath)
fromPath - from pathtoPath - to pathpublic void delete(String fromPath, String toPath)
fromPath - from pathtoPath - to pathpublic void any(String fromPath, String toPath, Redirect.Status status)
fromPath - from pathtoPath - to pathstatus - status codepublic void get(String fromPath, String toPath, Redirect.Status status)
fromPath - from pathtoPath - to pathstatus - status codepublic void post(String fromPath, String toPath, Redirect.Status status)
fromPath - from pathtoPath - to pathstatus - status codepublic void put(String fromPath, String toPath, Redirect.Status status)
fromPath - from pathtoPath - to pathstatus - status codepublic void delete(String fromPath, String toPath, Redirect.Status status)
fromPath - from pathtoPath - to pathstatus - status codeCopyright © 2017. All rights reserved.