Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.juzu.template
Class Template.Builder

    java.lang.Object
      org.juzu.template.Template.Builder

Enclosing class:
  Template

    public class Template.Builder

extends Object

Constructor Summary
`Template.Builder()`

Method Summary
`Response.Stream` | `notFound()`
`Response.Stream` | `ok()`
`void` | `render()`
`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.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Template.Builder

    public Template.Builder()

Method Detail

### render

    public final void render()

### ok

    public final Response.Stream ok()

### notFound

    public final Response.Stream notFound()

### set

    public Template.Builder set(String name,
                                Object value)
                         throws NullPointerException

  Update a parameter, if the value is not null the parameter with the specified name is set, otherwise the parameter is removed. If the parameter is set and a value was set previously, the old value is overwritten otherwise. If the parameter is removed and the value does not exist, nothing happens.

  Parameters:
    `name` - the parameter name
    `value` - the parameter value
  Returns:
    this builder
  Throws:
    `NullPointerException` - if the name argument is null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012 eXo Platform SAS. All Rights Reserved.