public class RedirectTo extends Object
| Constructor and Description |
|---|
RedirectTo(int status,
String resource)
Constructor for the status code an the resource url.
|
RedirectTo(String resource)
Constructor that puts the status to 302 code.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getResource()
The url of the resource to redirect to.
|
int |
getStatus()
The status code for the redirect must be a valid redirect 3xx code.
|
void |
setResource(String resource)
The url of the resource to redirect to.
|
void |
setStatus(int status)
The status code for the redirect must be a valid redirect 3xx code.
|
public RedirectTo(String resource)
resource - The url of the resource to redirect to.public RedirectTo(int status,
String resource)
status - The status code for the redirect must be a valid redirect 3xx code.resource - The resource to redirect to.public int getStatus()
public void setStatus(int status)
status - The status code for the redirect must be a valid redirect 3xx code.public String getResource()
public void setResource(String resource)
resource - The url of the resource to redirect to.Copyright © 2015–2017 Bridje Framework. All rights reserved.