public abstract class MessageBodyWebRequest extends WebRequest
http or https protocols.| Modifier and Type | Class and Description |
|---|---|
static class |
MessageBodyWebRequest.InputStreamMessageBody
A method request message body read directly from an input stream.
|
| Modifier and Type | Field and Description |
|---|---|
protected MessageBody |
_body |
method| Modifier | Constructor and Description |
|---|---|
protected |
MessageBodyWebRequest(String urlString,
boolean mimeEncoded)
Constructs a web request using a specific absolute url string.
|
protected |
MessageBodyWebRequest(String urlString,
MessageBody messageBody)
Constructs a web request using a specific absolute url string.
|
protected |
MessageBodyWebRequest(URL urlBase,
String urlString,
String target,
boolean mimeEncoded)
Constructs a web request with a specific target.
|
protected |
MessageBodyWebRequest(WebForm sourceForm)
Constructs a web request for a form submitted via script.
|
protected |
MessageBodyWebRequest(WebForm sourceForm,
com.meterware.httpunit.ParameterHolder parameterHolder,
SubmitButton button,
int x,
int y)
Constructs a web request for a form submitted via a button.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
completeRequest(URLConnection connection)
Performs any additional processing necessary to complete the request.
|
protected String |
getContentType()
Returns the content type of this request.
|
protected MessageBody |
getMessageBody()
Subclasses may override this method to provide a message body for the
request.
|
boolean |
isMimeEncoded()
Returns true if this request is to be MIME-encoded.
|
protected void |
writeMessageBody(OutputStream stream)
Writes the contents of the message body to the specified stream.
|
getCharacterSet, getHeaders, getMethod, getParameter, getParameterHolder, getParameterValues, getQueryString, getRequestParameterNames, getTarget, getURL, getURLBase, getURLString, isFileParameter, maySelectFile, removeParameter, selectFile, selectFile, selectFile, setHeaderField, setImageButtonClickPosition, setParameter, setParameter, setParameter, toStringprotected MessageBody _body
protected MessageBodyWebRequest(String urlString, boolean mimeEncoded)
protected MessageBodyWebRequest(String urlString, MessageBody messageBody)
protected MessageBodyWebRequest(URL urlBase, String urlString, String target, boolean mimeEncoded)
protected MessageBodyWebRequest(WebForm sourceForm, com.meterware.httpunit.ParameterHolder parameterHolder, SubmitButton button, int x, int y)
protected MessageBodyWebRequest(WebForm sourceForm)
protected MessageBody getMessageBody()
protected void writeMessageBody(OutputStream stream) throws IOException
WebRequestwriteMessageBody in class WebRequestIOExceptionprotected void completeRequest(URLConnection connection) throws IOException
completeRequest in class WebRequestIOExceptionprotected String getContentType()
WebRequestgetContentType in class WebRequestpublic boolean isMimeEncoded()
WebRequestisMimeEncoded in class WebRequestCopyright © 2012. All Rights Reserved.