protected abstract static class Context.ContextBaseBuilder<R extends Context,B extends Context.ContextBaseBuilder<R,B>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
platform |
protected Map<String,Object> |
properties |
| Modifier | Constructor and Description |
|---|---|
protected |
ContextBaseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract R |
build() |
protected abstract B |
createBuilder() |
B |
platform(String platform)
Set the name of the platform as would be provided in the request from the platform.
|
B |
properties(Map<String,Object> properties)
Add a set of properties from the provided Map to the context properties
as would be provided in the request from the platform.
|
B |
property(String key,
Object value)
Add a key/value pair to the context properties as would be provided in the request from the platform.
|
protected abstract B createBuilder()
public B platform(String platform)
platform - the platform namepublic B properties(Map<String,Object> properties)
properties - the properties to addContext.getProperties()public B property(String key, Object value)
key - the parameter key to addvalue - the parameter value to addContext.getProperties()public abstract R build()