public class View extends Result
View.Engine
.
Modifier and Type | Class and Description |
---|---|
static interface |
View.Engine
Special body serializer for dealing with View .
|
Modifier and Type | Method and Description |
---|---|
Map<String,?> |
model() |
String |
name() |
View |
put(Map<String,?> values)
Set model attributes and override existing values.
|
View |
put(String name, Object value)
Set a model attribute and override existing attribute.
|
Result |
set(Object content)
Set result content.
|
String |
toString() |
@Nonnull public View put(String name, Object value)
name
- Attribute's name.
value
- Attribute's value.
@Nonnull public View put(Map<String,?> values)
values
- Attribute's value.
@Nonnull public Result set(Object content)
Result
Copyright © 2019. All rights reserved.