public class Context
extends java.lang.Object
getProperty(String)
.Modifier and Type | Class and Description |
---|---|
protected static class |
Context.ContextBaseBuilder<R extends Context,B extends Context.ContextBaseBuilder<R,B>> |
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 |
Context() |
protected |
Context(java.lang.String platform,
java.util.Map<java.lang.String,java.lang.Object> properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getPlatform()
Get the name of the platform making the request.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Get all properties in the context.
|
java.lang.Object |
getProperty(java.lang.String key)
Get the value of a property in the context with the given key.
|
protected java.lang.String |
getStringProperty(java.lang.String key) |
int |
hashCode() |
java.lang.String |
toString() |
protected final java.lang.String platform
protected final java.util.Map<java.lang.String,java.lang.Object> properties
protected Context()
protected Context(java.lang.String platform, java.util.Map<java.lang.String,java.lang.Object> properties)
public java.lang.String getPlatform()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.Object getProperty(java.lang.String key)
key
- the key of the property to retrieveprotected java.lang.String getStringProperty(java.lang.String key)
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final boolean canEqual(java.lang.Object other)
public final int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object