|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jmeter.protocol.http.sampler.PostWriter
Class for setting the necessary headers for a POST request, and sending the body of the POST.
| Field Summary | |
protected static String |
BOUNDARY
The bounday string between multiparts |
static String |
ENCODING
|
protected byte[] |
formDataPostBody
The form data that is going to be sent in post body |
protected byte[] |
formDataUrlEncoded
The form data that is going to be sent as url encoded |
| Constructor Summary | |
PostWriter()
Constructor for PostWriter. |
|
PostWriter(String boundary)
Constructor for PostWriter |
|
| Method Summary | |
protected String |
getBoundary()
Get the boundary string, used to separate multiparts |
String |
sendPostData(URLConnection connection,
HTTPSampler sampler)
Send POST data from Entry to the open connection. |
void |
setHeaders(URLConnection connection,
HTTPSampler sampler)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final String BOUNDARY
public static final String ENCODING
protected byte[] formDataUrlEncoded
protected byte[] formDataPostBody
| Constructor Detail |
public PostWriter()
public PostWriter(String boundary)
boundary - the boundary string to use as marker between multipart parts| Method Detail |
public String sendPostData(URLConnection connection,
HTTPSampler sampler)
throws IOException
IOException
public void setHeaders(URLConnection connection,
HTTPSampler sampler)
throws IOException
IOExceptionprotected String getBoundary()
|
Apache JMeter | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||