|
|||||||||
| Home >> All >> com >> meterware >> [ httpunit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.meterware.httpunit
Class MessageBodyWebRequest

java.lang.Objectcom.meterware.httpunit.WebRequest
com.meterware.httpunit.MessageBodyWebRequest
- Direct Known Subclasses:
- PostMethodWebRequest, PutMethodWebRequest
- public abstract class MessageBodyWebRequest
- extends WebRequest
A web request which contains a non-empty message body. Note that such requests
must use the http or https protocols.
| Nested Class Summary | |
static class |
MessageBodyWebRequest.InputStreamMessageBody
A method request message body read directly from an input stream. |
| Field Summary |
| Fields inherited from class com.meterware.httpunit.WebRequest |
NEW_WINDOW, PARENT_FRAME, REFERER_HEADER_NAME, SAME_FRAME, TOP_FRAME |
| Constructor Summary | |
protected |
MessageBodyWebRequest(java.lang.String urlString)
Constructs a web request using a specific absolute url string. |
protected |
MessageBodyWebRequest(java.net.URL urlBase,
java.lang.String urlString,
java.lang.String target)
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,
ParameterHolder parameterHolder,
SubmitButton button,
int x,
int y)
Constructs a web request for a form submitted via a button. |
protected |
MessageBodyWebRequest(WebForm sourceForm,
SubmitButton button,
int x,
int y)
Constructs a web request for a form submitted via a button. |
| Method Summary | |
protected void |
completeRequest(java.net.URLConnection connection)
Performs any additional processing necessary to complete the request. |
protected java.lang.String |
getContentType()
Returns the content type of this request. |
protected abstract MessageBody |
getMessageBody()
Subclasses must override this method to provide a message body for the request. |
protected void |
writeMessageBody(java.io.OutputStream stream)
Writes the contents of the message body to the specified stream. |
| Methods inherited from class com.meterware.httpunit.WebRequest |
getCharacterSet, getHeaderDictionary, getHeaders, getMethod, getParameter, getParameterHolder, getParameterValues, getQueryString, getReferer, getRequestParameterNames, getSourceFrame, getTarget, getURL, getURLBase, getURLString, getWebRequestSource, isFileParameter, isMimeEncoded, maySelectFile, newParameterHolder, removeParameter, selectFile, selectFile, selectFile, setHeaderField, setImageButtonClickPosition, setMimeEncoded, setParameter, setParameter, setParameter, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
MessageBodyWebRequest
protected MessageBodyWebRequest(java.lang.String urlString)
- Constructs a web request using a specific absolute url string.
MessageBodyWebRequest
protected MessageBodyWebRequest(java.net.URL urlBase, java.lang.String urlString, java.lang.String target)
- Constructs a web request with a specific target.
MessageBodyWebRequest
protected MessageBodyWebRequest(WebForm sourceForm, SubmitButton button, int x, int y)
- Constructs a web request for a form submitted via a button.
MessageBodyWebRequest
protected MessageBodyWebRequest(WebForm sourceForm, ParameterHolder parameterHolder, SubmitButton button, int x, int y)
- Constructs a web request for a form submitted via a button.
- Since:
- 1.6
MessageBodyWebRequest
protected MessageBodyWebRequest(WebForm sourceForm)
- Constructs a web request for a form submitted via script.
| Method Detail |
getMessageBody
protected abstract MessageBody getMessageBody()
- Subclasses must override this method to provide a message body for the
request.
writeMessageBody
protected void writeMessageBody(java.io.OutputStream stream) throws java.io.IOException
- Description copied from class:
WebRequest - Writes the contents of the message body to the specified stream.
- Overrides:
writeMessageBodyin classWebRequest
completeRequest
protected void completeRequest(java.net.URLConnection connection) throws java.io.IOException
- Performs any additional processing necessary to complete the request.
- Overrides:
completeRequestin classWebRequest
getContentType
protected java.lang.String getContentType()
- Description copied from class:
WebRequest - Returns the content type of this request. If null, no content is specified.
- Overrides:
getContentTypein classWebRequest
|
|||||||||
| Home >> All >> com >> meterware >> [ httpunit overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC