@Beta public final class HttpRequestSensor<T> extends AddSensor<T,AttributeSensor<T>>
EntityInitializer which adds an HTTP sensor feed to retrieve the
 JSONObject from a JSON response in order to populate the sensor with the indicated name.| Modifier and Type | Field and Description | 
|---|---|
| static ConfigKey<java.lang.String> | JSON_PATH | 
| static ConfigKey<java.lang.String> | SENSOR_URI | 
SENSOR_NAME, SENSOR_PERIOD, SENSOR_TYPE| Constructor and Description | 
|---|
| HttpRequestSensor(ConfigBag params) | 
| HttpRequestSensor(java.util.Map<java.lang.String,java.lang.String> params) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | apply(EntityLocal entity)Applies initialization logic to a just-built entity. | 
public static final ConfigKey<java.lang.String> JSON_PATH
public static final ConfigKey<java.lang.String> SENSOR_URI
public HttpRequestSensor(java.util.Map<java.lang.String,java.lang.String> params)
public HttpRequestSensor(ConfigBag params)
public void apply(EntityLocal entity)
EntityInitializerapply in interface EntityInitializerapply in class AddSensor<T,AttributeSensor<T>>entity - guaranteed to be the actual implementation instance, 
 thus guaranteed to be castable to EntityInternal which is often desired,
 or to the type at hand (it is not even a proxy)