|
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
public class PostWriter
Class for setting the necessary headers for a POST request, and sending the body of the POST.
Field Summary | |
---|---|
protected static java.lang.String |
BOUNDARY
The bounday string between multiparts |
static java.lang.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(java.lang.String boundary)
Constructor for PostWriter |
Method Summary | |
---|---|
protected java.lang.String |
getBoundary()
Get the boundary string, used to separate multiparts |
java.lang.String |
sendPostData(java.net.URLConnection connection,
HTTPSampler sampler)
Send POST data from Entry to the open connection. |
void |
setHeaders(java.net.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 java.lang.String BOUNDARY
public static final java.lang.String ENCODING
protected byte[] formDataUrlEncoded
protected byte[] formDataPostBody
Constructor Detail |
---|
public PostWriter()
public PostWriter(java.lang.String boundary)
boundary
- the boundary string to use as marker between multipart partsMethod Detail |
---|
public java.lang.String sendPostData(java.net.URLConnection connection, HTTPSampler sampler) throws java.io.IOException
java.io.IOException
public void setHeaders(java.net.URLConnection connection, HTTPSampler sampler) throws java.io.IOException
java.io.IOException
protected java.lang.String getBoundary()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |