61626364656667
* Create an instance of the http source with the default target host (localhost) and default port (9000). * * @return an instance of HttpSource */ public SimpleHttpSource http() { return new SimpleHttpSource(); }
71727374757677
* * @param host the host ip where http data will be posted. * @return an instance of HttpSource */ public SimpleHttpSource http(String host) { return new SimpleHttpSource(host); }
82838485868788
* @param host the host ip where http data will be posted. * @param port the port to connect to * @return an instance of HttpSource */ public SimpleHttpSource http(String host, int port) { return new SimpleHttpSource(host, port); }