public abstract static class Response.View extends Response implements Dispatch
Response.Body, Response.Content, Response.Error, Response.Redirect, Response.Status, Response.View| Constructor and Description |
|---|
Response.View() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
equals(Object obj) |
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.
|
content, content, content, content, content, error, error, getProperties, notFound, notFound, notFound, notFound, notFound, ok, ok, ok, ok, ok, redirect, statusgetClass, hashCode, notify, notifyAll, toString, wait, wait, waitescapeXML, setParameter, setParameter, setParameter, setParameter, setProperty, toString, with, withpublic <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 © 2016 eXo Platform SAS. All rights reserved.