Class PutMethodWebRequest
java.lang.Object
com.meterware.httpunit.WebRequest
com.meterware.httpunit.MessageBodyWebRequest
com.meterware.httpunit.PutMethodWebRequest
A web request using the PUT protocol.
The objectives of this class are to suport an HTTP PUT petition
so we can test this HTTP requests.
Documentation See the HTTP 1.1 [spec]
- Author:
- Tom Watkins, Deepa Dihr, Marcos Tarruella, Russell Gold
-
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
ConstructorsConstructorDescriptionPutMethodWebRequest(String url, InputStream source, String contentType) Constructs a web request using a specific absolute url string and input stream. -
Method Summary
Methods inherited from class MessageBodyWebRequest
completeRequest, getContentType, getMessageBody, isMimeEncoded, writeMessageBodyMethods inherited from class WebRequest
getCharacterSet, getHeaders, getParameter, getParameterHolder, getParameterValues, getQueryString, getRequestParameterNames, getTarget, getURL, getURLBase, getURLString, isFileParameter, maySelectFile, removeParameter, selectFile, selectFile, selectFile, setHeaderField, setImageButtonClickPosition, setParameter, setParameter, setParameter, toString
-
Constructor Details
-
PutMethodWebRequest
Constructs a web request using a specific absolute url string and input stream.- Parameters:
url- 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 'PUT' to indicate the method.- Overrides:
getMethodin classWebRequest- Returns:
- the method
-