public static class Response.Render extends Response.Content<Stream.Char>
Response.Content<S extends Stream>, Response.Error, Response.Redirect, Response.Render, Response.View| Constructor and Description |
|---|
Response.Render() |
Response.Render(int status,
PropertyMap properties,
Streamable<Stream.Char> streamable) |
Response.Render(int status,
Streamable<Stream.Char> streamable) |
Response.Render(PropertyMap properties,
Streamable<Stream.Char> streamable) |
Response.Render(Streamable<Stream.Char> streamable) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Map.Entry<String,String>> |
getMetaTags() |
Iterable<String> |
getScripts() |
Iterable<String> |
getStylesheets() |
String |
getTitle() |
String |
toString() |
Response.Render |
with(PropertyType<Boolean> propertyType)
Set a boolean property to true.
|
<T> Response.Render |
with(PropertyType<T> propertyType,
T propertyValue)
Set a property, if the value is null, the property is removed.
|
Response.Render |
withHeader(String name,
String... value) |
Response.Render |
withMetaTag(String name,
String value) |
Response.Render |
withMimeType(String mimeType) |
Response.Render |
withNo(PropertyType<Boolean> propertyType)
Set a boolean property to false.
|
<T> Response.Render |
without(PropertyType<T> propertyType)
Removes a property.
|
Response.Render |
withScripts(String... scripts) |
Response.Render |
withStylesheets(String... stylesheets) |
Response.Render |
withTitle(String title) |
getKind, getMimeType, getStatus, getStreamable, sendpublic Response.Render()
public Response.Render(int status,
PropertyMap properties,
Streamable<Stream.Char> streamable)
public Response.Render(int status,
Streamable<Stream.Char> streamable)
public Response.Render(PropertyMap properties, Streamable<Stream.Char> streamable)
public Response.Render(Streamable<Stream.Char> streamable)
public <T> Response.Render with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException
Responsewith in class Response.Content<Stream.Char>propertyType - the property typepropertyValue - the property valueNullPointerException - if the property type is nullpublic <T> Response.Render without(PropertyType<T> propertyType) throws NullPointerException
Responsewithout in class Response.Content<Stream.Char>propertyType - the property typeNullPointerException - if the property type is nullpublic Response.Render with(PropertyType<Boolean> propertyType) throws NullPointerException
Responsewith in class Response.Content<Stream.Char>propertyType - the property typeNullPointerException - if the property type is nullpublic Response.Render withNo(PropertyType<Boolean> propertyType) throws NullPointerException
ResponsewithNo in class Response.Content<Stream.Char>propertyType - the property typeNullPointerException - if the property type is nullpublic Response.Render withMimeType(String mimeType)
withMimeType in class Response.Content<Stream.Char>public Response.Render withHeader(String name, String... value)
withHeader in class Response.Content<Stream.Char>public String getTitle()
public Response.Render withTitle(String title)
public Response.Render withScripts(String... scripts) throws NullPointerException
NullPointerExceptionpublic Response.Render withStylesheets(String... stylesheets) throws NullPointerException
NullPointerExceptionpublic Response.Render withMetaTag(String name, String value)
Copyright © 2013 eXo Platform SAS. All Rights Reserved.