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)
HttpGeneratorpostData in interface HttpGeneratormessage - String to send in the http body.public void postFromFile(java.io.File file)
HttpGeneratorpostFromFile in interface HttpGeneratorfile - the File that contains the data to post