| Modifier and Type | Field and Description |
|---|---|
protected static String |
BOUNDARY
The boundary 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 and Description |
|---|
PostWriter()
Constructor for PostWriter.
|
PostWriter(String boundary)
Constructor for PostWriter
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getBoundary()
Get the boundary string, used to separate multiparts
|
String |
sendPostData(URLConnection connection,
HTTPSamplerBase sampler)
Send POST data from Entry to the open connection.
|
void |
setHeaders(URLConnection connection,
HTTPSamplerBase sampler) |
protected static final String BOUNDARY
public static final String ENCODING
protected byte[] formDataUrlEncoded
protected byte[] formDataPostBody
public PostWriter()
public PostWriter(String boundary)
boundary - the boundary string to use as marker between multipart partspublic String sendPostData(URLConnection connection, HTTPSamplerBase sampler) throws IOException
connection - the open connection to use for sending datasampler - sampler to get information about what to sendIOException - when writing data failspublic void setHeaders(URLConnection connection, HTTPSamplerBase sampler) throws IOException
IOExceptionprotected String getBoundary()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.