Response.Body, Response.Content, Response.Error, Response.Redirect, Response.Status, Response.View
Constructor and Description |
---|
Response.Redirect(String location) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLocation() |
String |
toString() |
Response.Redirect |
with(PropertyType<Boolean> propertyType)
Set a boolean property to true.
|
<T> Response.Redirect |
with(PropertyType<T> propertyType,
T propertyValue)
Set a property, if the value is null, the property is removed.
|
Response.Redirect |
withHeader(String name,
String... value) |
Response.Redirect |
withNo(PropertyType<Boolean> propertyType)
Set a boolean property to false.
|
<T> Response.Redirect |
without(PropertyType<T> propertyType)
Removes a property.
|
public Response.Redirect(String location)
public String getLocation()
public <T> Response.Redirect with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException
Response
with
in class Response
propertyType
- the property typepropertyValue
- the property valueNullPointerException
- if the property type is nullpublic Response.Redirect withHeader(String name, String... value)
withHeader
in class Response
public <T> Response.Redirect without(PropertyType<T> propertyType) throws NullPointerException
Response
without
in class Response
propertyType
- the property typeNullPointerException
- if the property type is nullpublic Response.Redirect with(PropertyType<Boolean> propertyType) throws NullPointerException
Response
with
in class Response
propertyType
- the property typeNullPointerException
- if the property type is nullpublic Response.Redirect withNo(PropertyType<Boolean> propertyType) throws NullPointerException
Response
withNo
in class Response
propertyType
- the property typeNullPointerException
- if the property type is nullCopyright © 2015 eXo Platform SAS. All rights reserved.