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