public class SimpleHttpSource extends AbstractModuleFixture
Constructor and Description |
---|
SimpleHttpSource(int port) |
SimpleHttpSource(java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
SimpleHttpSource |
ensureReady()
Attempts connections to the source until it is ready to accept data.
|
SimpleHttpSource |
ensureReady(int timeout) |
void |
postData(java.lang.String payload) |
void |
postFromFile(java.io.File file) |
protected java.lang.String |
toDSL()
Returns a representation of the module suitable for inclusion in a stream definition, e.g.
file --dir=xxxx --name=yyyy |
toString
public SimpleHttpSource(int port) throws java.lang.Exception
java.lang.Exception
public SimpleHttpSource(java.lang.String host, int port) throws java.lang.Exception
java.lang.Exception
public SimpleHttpSource ensureReady()
public SimpleHttpSource ensureReady(int timeout)
protected java.lang.String toDSL()
AbstractModuleFixture
file --dir=xxxx --name=yyyy
toDSL
in class AbstractModuleFixture
public void postData(java.lang.String payload) throws java.lang.Exception
java.lang.Exception
public void postFromFile(java.io.File file) throws java.lang.Exception
java.lang.Exception