public class Redirect extends Object
Used to configure responses.
Modifier and Type | Field and Description |
---|---|
protected int |
code |
protected String |
location |
Constructor and Description |
---|
Redirect() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCode()
Get the code of the redirect.
|
String |
getLocation()
Get the location of the redirect.
|
int |
hashCode() |
void |
setCode(int value)
Set the code of the redirect.
|
void |
setLocation(String value)
Set the location of the redirect.
|
protected int code
protected String location
public int getCode()
public void setCode(int value)
value
- The code of the redirectpublic String getLocation()
public void setLocation(String value)
value
- The location of the redirectCopyright © 2016. All Rights Reserved.