| Constructor and Description |
|---|
Template.Builder() |
| Modifier and Type | Method and Description |
|---|---|
Template.Builder |
locale(Locale locale)
Update the locale.
|
Response.Content |
notFound()
Renders the template and returns a response with the not found status.
|
Response.Content |
ok()
Renders the template and set the response on the current
MimeContext. |
void |
render()
Renders the template and set the response on the current
MimeContext |
<A extends Appendable> |
renderTo(A appendable)
Renders the template to the specified appendable.
|
void |
renderTo(Stream printer)
Renders the template to the specified printer.
|
Template.Builder |
set(String name,
Object value)
Update a parameter, if the value is not null the parameter with the specified name is set, otherwise the
parameter is removed.
|
Response.Content |
status(int status)
Renders the template and returns a response with the specified status.
|
public Template.Builder locale(Locale locale)
locale - the new localepublic Template.Builder set(String name, Object value) throws NullPointerException
name - the parameter namevalue - the parameter valueNullPointerException - if the name argument is nullpublic final Response.Content ok() throws UndeclaredIOException
MimeContext.UndeclaredIOExceptionpublic final Response.Content notFound() throws UndeclaredIOException
UndeclaredIOExceptionpublic final Response.Content status(int status) throws UndeclaredIOException
UndeclaredIOExceptionpublic <A extends Appendable> A renderTo(A appendable) throws TemplateExecutionException, UndeclaredIOException
appendable - the appendableTemplateExecutionException - any execution exceptionUndeclaredIOException - any io exceptionpublic void renderTo(Stream printer) throws TemplateExecutionException, UndeclaredIOException
printer - the printerTemplateExecutionException - any execution exceptionUndeclaredIOException - any io exceptionpublic void render()
throws TemplateExecutionException,
UndeclaredIOException
MimeContextCopyright © 2013 eXo Platform SAS. All Rights Reserved.