@Test public void testPollsAndParsesHttpPostResponse() throws Exception { feed = HttpFeed.builder() .entity(entity) .baseUrl(baseUrl) .poll(new HttpPollConfig<Integer>(SENSOR_INT) .method("post") .period(100) .onSuccess(HttpValueFunctions.responseCode())) .poll(new HttpPollConfig<String>(SENSOR_STRING) .method("post") .period(100) .onSuccess(HttpValueFunctions.stringContentsFunction())) .build(); assertSensorEventually(SENSOR_INT, (Integer)200, TIMEOUT_MS); assertSensorEventually(SENSOR_STRING, "{\"foo\":\"myfoo\"}", TIMEOUT_MS); }
public static Builder builder() { return new Builder(); }
HttpFeed extends AbstractFeed { public static Builder builder() { return new Builder(); } }
HttpFeed extends AbstractFeed { public static Builder builder() { return new Builder(); } HttpFeed(); protected  HttpFeed(Builder builder); }
HttpFeed extends AbstractFeed { public static Builder builder() { return new Builder(); } HttpFeed(); protected  HttpFeed(Builder builder); static Builder builder(); }
HttpFeed extends AbstractFeed { public static Builder builder() { return new Builder(); } HttpFeed(); protected  HttpFeed(Builder builder); static Builder builder(); static final Logger log; @SuppressWarnings("serial")
    static final ConfigKey<SetMultimap<HttpPollIdentifier, HttpPollConfig<?>>> POLLS; }