Class PutMethodWebRequest

  extended bycom.meterware.httpunit.WebRequest
      extended bycom.meterware.httpunit.MessageBodyWebRequest
          extended bycom.meterware.httpunit.PutMethodWebRequest

public class PutMethodWebRequest
extends MessageBodyWebRequest

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]

Tom Watkins, Deepa Dihr, Marcos Tarruella, Russell Gold

Nested Class Summary
Nested classes inherited from class com.meterware.httpunit.MessageBodyWebRequest
Field Summary
Fields inherited from class com.meterware.httpunit.MessageBodyWebRequest
Fields inherited from class com.meterware.httpunit.WebRequest
Constructor Summary
PutMethodWebRequest(java.lang.String url, source, java.lang.String contentType)
          Constructs a web request using a specific absolute url string and input stream.
Method Summary
 java.lang.String getMethod()
          Returns 'PUT' to indicate the method.
Methods inherited from class com.meterware.httpunit.MessageBodyWebRequest
completeRequest, getContentType, getMessageBody, isMimeEncoded, writeMessageBody
Methods inherited from class com.meterware.httpunit.WebRequest
getCharacterSet, getHeaders, getParameter, getParameterHolder, getParameterValues, getQueryString, getRequestParameterNames, getTarget, getURL, getURLBase, getURLString, isFileParameter, maySelectFile, removeParameter, selectFile, selectFile, selectFile, setHeaderField, setImageButtonClickPosition, setParameter, setParameter, setParameter, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public PutMethodWebRequest(java.lang.String url,
                           java.lang.String contentType)
Constructs a web request using a specific absolute url string and input stream.

url - the URL to which the request should be issued
source - an input stream which will provide the body of this request
contentType - the MIME content type of the body, including any character set
Method Detail


public java.lang.String getMethod()
Returns 'PUT' to indicate the method.

getMethod in class WebRequest
the method

Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.