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, status
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
escapeXML, setParameter, setParameter, setParameter, setParameter, setProperty, toString, with, with
public <T> Response.View 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.View withHeader(String name, String... value)
withHeader
in class Response
public <T> Response.View without(PropertyType<T> propertyType) throws NullPointerException
Response
without
in class Response
propertyType
- the property typeNullPointerException
- if the property type is nullpublic Response.View with(PropertyType<Boolean> propertyType) throws NullPointerException
Response
with
in class Response
propertyType
- the property typeNullPointerException
- if the property type is nullpublic Response.View 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.