public abstract static class Response.View extends Response
Response.Content<S extends Stream>, Response.Error, Response.Redirect, Response.Render, Response.View| Constructor and Description |
|---|
Response.View() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
abstract Map<String,String[]> |
getParameters() |
abstract juzu.impl.common.MethodHandle |
getTarget() |
String |
toString() |
Response.View |
with(PropertyType<Boolean> propertyType)
Set a boolean property to true.
|
<T> Response.View |
with(PropertyType<T> propertyType,
T propertyValue)
Set a property, if the value is null, the property is removed.
|
Response.View |
withHeader(String name,
String... value) |
Response.View |
withNo(PropertyType<Boolean> propertyType)
Set a boolean property to false.
|
<T> Response.View |
without(PropertyType<T> propertyType)
Removes a property.
|
public abstract juzu.impl.common.MethodHandle getTarget()
public <T> Response.View with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException
Responsewith in class ResponsepropertyType - the property typepropertyValue - the property valueNullPointerException - if the property type is nullpublic Response.View withHeader(String name, String... value)
withHeader in class Responsepublic <T> Response.View without(PropertyType<T> propertyType) throws NullPointerException
Responsewithout in class ResponsepropertyType - the property typeNullPointerException - if the property type is nullpublic Response.View with(PropertyType<Boolean> propertyType) throws NullPointerException
Responsewith in class ResponsepropertyType - the property typeNullPointerException - if the property type is nullpublic Response.View withNo(PropertyType<Boolean> propertyType) throws NullPointerException
ResponsewithNo in class ResponsepropertyType - the property typeNullPointerException - if the property type is nullCopyright © 2013 eXo Platform SAS. All Rights Reserved.