public static class Response.Render extends Response.Content
Response.Action, Response.Body, Response.Content, Response.Error, Response.Redirect, Response.Render, Response.Status, Response.View| Constructor and Description |
|---|
Response.Render(int status,
PropertyMap properties,
Streamable streamable) |
Response.Render(int status,
Streamable streamable) |
Response.Render(PropertyMap properties,
Streamable streamable) |
Response.Render(Streamable streamable) |
| Modifier and Type | Method and Description |
|---|---|
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 |
withCharset(Charset charset) |
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) |
getTitle, toStringgetCharset, getMimeType, getStreamablebody, body, body, body, content, content, content, content, getCodepublic Response.Render(int status,
PropertyMap properties,
Streamable streamable)
public Response.Render(int status,
Streamable streamable)
public Response.Render(PropertyMap properties, Streamable streamable)
public Response.Render(Streamable streamable)
public <T> Response.Render with(PropertyType<T> propertyType, T propertyValue) throws NullPointerException
Responsewith in class Response.ContentpropertyType - 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.ContentpropertyType - the property typeNullPointerException - if the property type is nullpublic Response.Render with(PropertyType<Boolean> propertyType) throws NullPointerException
Responsewith in class Response.ContentpropertyType - the property typeNullPointerException - if the property type is nullpublic Response.Render withNo(PropertyType<Boolean> propertyType) throws NullPointerException
ResponsewithNo in class Response.ContentpropertyType - the property typeNullPointerException - if the property type is nullpublic Response.Render withMimeType(String mimeType)
withMimeType in class Response.Contentpublic Response.Render withCharset(Charset charset)
withCharset in class Response.Contentpublic Response.Render withHeader(String name, String... value)
withHeader in class Response.Contentpublic Response.Render withTitle(String title)
withTitle in class Response.Contentpublic Response.Render withScripts(String... scripts) throws NullPointerException
withScripts in class Response.ContentNullPointerExceptionpublic Response.Render withStylesheets(String... stylesheets) throws NullPointerException
withStylesheets in class Response.ContentNullPointerExceptionpublic Response.Render withMetaTag(String name, String value)
withMetaTag in class Response.ContentCopyright © 2013 eXo Platform SAS. All Rights Reserved.