juzu
Class Response.Redirect
java.lang.Object
juzu.Response
juzu.Response.Redirect
- Enclosing class:
- Response
public static class Response.Redirect
- extends Response
A response instructing to execute an HTTP redirection after the current interaction.
Response.Redirect
public Response.Redirect(String location)
getLocation
public String getLocation()
with
public <T> Response.Redirect with(PropertyType<T> propertyType,
T propertyValue)
throws NullPointerException
- Description copied from class:
Response
- Set a property, if the value is null, the property is removed.
- Overrides:
with
in class Response
- Parameters:
propertyType
- the property typepropertyValue
- the property value
- Throws:
NullPointerException
- if the property type is null
withHeader
public Response.Redirect withHeader(String name,
String... value)
- Overrides:
withHeader
in class Response
without
public <T> Response.Redirect without(PropertyType<T> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Removes a property.
- Overrides:
without
in class Response
- Parameters:
propertyType
- the property type
- Throws:
NullPointerException
- if the property type is null
with
public Response.Redirect with(PropertyType<Boolean> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Set a boolean property to true.
- Overrides:
with
in class Response
- Parameters:
propertyType
- the property type
- Throws:
NullPointerException
- if the property type is null
withNo
public Response.Redirect withNo(PropertyType<Boolean> propertyType)
throws NullPointerException
- Description copied from class:
Response
- Set a boolean property to false.
- Overrides:
withNo
in class Response
- Parameters:
propertyType
- the property type
- Throws:
NullPointerException
- if the property type is null
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 eXo Platform SAS. All Rights Reserved.