public class SimpleHttpGenerator extends java.lang.Object implements HttpGenerator
Constructor and Description |
---|
SimpleHttpGenerator(java.lang.String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
postData(java.lang.String message)
Generate a http request from
|
void |
postFromFile(java.io.File file)
Generate a http request from the contents of a file
|
public SimpleHttpGenerator(java.lang.String host, int port) throws java.lang.Exception
java.lang.Exception
public void postData(java.lang.String message)
HttpGenerator
postData
in interface HttpGenerator
message
- the mesage to postpublic void postFromFile(java.io.File file) throws java.lang.Exception
HttpGenerator
postFromFile
in interface HttpGenerator
file
- the File that contains the data to postjava.lang.Exception
- An exception, most likely due to file handling