public static class AbstractBrooklynRestResource.RestValueResolver
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
AbstractBrooklynRestResource.RestValueResolver |
asJerseyOutermostReturnValue(boolean asJerseyReturnJson)
whether an outermost string must be wrapped in quotes, because a String return object is treated as
already JSON-encoded
|
AbstractBrooklynRestResource.RestValueResolver |
context(Entity entity) |
AbstractBrooklynRestResource.RestValueResolver |
mapper(org.codehaus.jackson.map.ObjectMapper mapper) |
AbstractBrooklynRestResource.RestValueResolver |
preferJson(boolean preferJson)
whether JSON is the ultimate product;
main effect here is to give null for null if true, else to give empty string
|
AbstractBrooklynRestResource.RestValueResolver |
raw(java.lang.Boolean raw) |
AbstractBrooklynRestResource.RestValueResolver |
renderAs(java.lang.Object rendererHintSource) |
java.lang.Object |
resolve() |
static AbstractBrooklynRestResource.RestValueResolver |
resolving(java.lang.Object v) |
AbstractBrooklynRestResource.RestValueResolver |
timeout(Duration timeout) |
public static AbstractBrooklynRestResource.RestValueResolver resolving(java.lang.Object v)
public AbstractBrooklynRestResource.RestValueResolver mapper(org.codehaus.jackson.map.ObjectMapper mapper)
public AbstractBrooklynRestResource.RestValueResolver preferJson(boolean preferJson)
conversion to JSON for complex types is done subsequently (often by the framework)
default is true
public AbstractBrooklynRestResource.RestValueResolver asJerseyOutermostReturnValue(boolean asJerseyReturnJson)
default is false
public AbstractBrooklynRestResource.RestValueResolver raw(java.lang.Boolean raw)
public AbstractBrooklynRestResource.RestValueResolver context(Entity entity)
public AbstractBrooklynRestResource.RestValueResolver timeout(Duration timeout)
public AbstractBrooklynRestResource.RestValueResolver renderAs(java.lang.Object rendererHintSource)
public java.lang.Object resolve()