Class PostMethodWebRequest
java.lang.Object
com.meterware.httpunit.WebRequest
com.meterware.httpunit.MessageBodyWebRequest
com.meterware.httpunit.PostMethodWebRequest
An HTTP request using the POST method.
-
Nested Class Summary
Nested classes/interfaces inherited from class MessageBodyWebRequest
MessageBodyWebRequest.InputStreamMessageBody -
Field Summary
Fields inherited from class MessageBodyWebRequest
_bodyFields inherited from class WebRequest
method -
Constructor Summary
ConstructorsConstructorDescriptionPostMethodWebRequest(String urlString) Constructs a web request using a specific absolute url string.PostMethodWebRequest(String urlString, boolean mimeEncoded) Constructs a web request using a specific absolute url string, with optional mime encoding.PostMethodWebRequest(String urlString, InputStream source, String contentType) Constructs a web request using a specific absolute url string and input stream.PostMethodWebRequest(URL urlBase, String urlString, String target) Constructs a web request with a specific target.PostMethodWebRequest(URL urlBase, String urlString, String target, boolean mimeEncoded) Constructs a web request with a specific target, with optional mime encoding. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.meterware.httpunit.protocol.MessageBodySubclasses may override this method to provide a message body for the request.Returns the HTTP method defined for this request.Returns the query string defined for this request.protected booleanmaySelectFile(String parameterName) Returns true if selectFile may be called with this parameter.Methods inherited from class MessageBodyWebRequest
completeRequest, getContentType, isMimeEncoded, writeMessageBodyMethods inherited from class WebRequest
getCharacterSet, getHeaders, getParameter, getParameterHolder, getParameterValues, getRequestParameterNames, getTarget, getURL, getURLBase, getURLString, isFileParameter, removeParameter, selectFile, selectFile, selectFile, setHeaderField, setImageButtonClickPosition, setParameter, setParameter, setParameter, toString
-
Constructor Details
-
PostMethodWebRequest
Constructs a web request using a specific absolute url string. -
PostMethodWebRequest
Constructs a web request using a specific absolute url string, with optional mime encoding. -
PostMethodWebRequest
-
PostMethodWebRequest
-
PostMethodWebRequest
Constructs a web request using a specific absolute url string and input stream.- Parameters:
urlString- the URL to which the request should be issuedsource- an input stream which will provide the body of this requestcontentType- the MIME content type of the body, including any character set
-
-
Method Details
-
getMethod
Returns the HTTP method defined for this request.- Overrides:
getMethodin classWebRequest- Returns:
- the method
-
getQueryString
Returns the query string defined for this request.- Overrides:
getQueryStringin classWebRequest
-
maySelectFile
Returns true if selectFile may be called with this parameter.- Overrides:
maySelectFilein classWebRequest
-
getMessageBody
protected com.meterware.httpunit.protocol.MessageBody getMessageBody()Description copied from class:MessageBodyWebRequestSubclasses may override this method to provide a message body for the request.- Overrides:
getMessageBodyin classMessageBodyWebRequest
-