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 POST request using the String as the body of the request.
|
void |
postFromFile(java.io.File file)
Generate a http request from the contents of a file
|
public void postData(java.lang.String message)
HttpGenerator
postData
in interface HttpGenerator
message
- String to send in the http body.public void postFromFile(java.io.File file)
HttpGenerator
postFromFile
in interface HttpGenerator
file
- the File that contains the data to post