| java.lang.Object com.meterware.httpunit.WebRequest com.meterware.httpunit.MessageBodyWebRequest com.meterware.httpunit.PutMethodWebRequest
PutMethodWebRequest | public class PutMethodWebRequest extends MessageBodyWebRequest (Code) | | 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 author: Deepa Dihr author: Marcos Tarruella author: Russell Gold |
PutMethodWebRequest | public PutMethodWebRequest(String url, InputStream source, String contentType)(Code) | | Constructs a web request using a specific absolute url string and input stream.
Parameters: urlString - the URL to which the request should be issued Parameters: source - an input stream which will provide the body of this request Parameters: contentType - the MIME content type of the body, including any character set |
getMessageBody | protected MessageBody getMessageBody()(Code) | | Returns a message body based on the input stream.
|
getMethod | public String getMethod()(Code) | | Returns 'PUT' to indicate the method.
|
Methods inherited from com.meterware.httpunit.WebRequest | protected void completeRequest(URLConnection connection) throws IOException(Code)(Java Doc) final protected String getCharacterSet()(Code)(Java Doc) protected String getContentType()(Code)(Java Doc) Hashtable getHeaderDictionary()(Code)(Java Doc) public Dictionary getHeaders()(Code)(Java Doc) abstract public String getMethod()(Code)(Java Doc) public String getParameter(String name)(Code)(Java Doc) final protected ParameterHolder getParameterHolder()(Code)(Java Doc) public String[] getParameterValues(String name)(Code)(Java Doc) public String getQueryString()(Code)(Java Doc) String getReferer()(Code)(Java Doc) public String[] getRequestParameterNames()(Code)(Java Doc) FrameSelector getSourceFrame()(Code)(Java Doc) public String getTarget()(Code)(Java Doc) public URL getURL() throws MalformedURLException(Code)(Java Doc) final protected URL getURLBase()(Code)(Java Doc) protected String getURLString()(Code)(Java Doc) WebRequestSource getWebRequestSource()(Code)(Java Doc) public boolean isFileParameter(String name)(Code)(Java Doc) protected boolean isMimeEncoded()(Code)(Java Doc) protected boolean maySelectFile(String parameterName)(Code)(Java Doc) static ParameterHolder newParameterHolder(WebRequestSource requestSource)(Code)(Java Doc) public void removeParameter(String name)(Code)(Java Doc) public void selectFile(String parameterName, File file)(Code)(Java Doc) public void selectFile(String parameterName, File file, String contentType)(Code)(Java Doc) public void selectFile(String parameterName, String fileName, InputStream inputStream, String contentType)(Code)(Java Doc) public void setHeaderField(String headerName, String headerValue)(Code)(Java Doc) public void setImageButtonClickPosition(int x, int y) throws IllegalRequestParameterException(Code)(Java Doc) protected void setMimeEncoded(boolean mimeEncoded)(Code)(Java Doc) public void setParameter(String name, String value)(Code)(Java Doc) public void setParameter(String name, String[] values)(Code)(Java Doc) public void setParameter(String parameterName, UploadFileSpec[] files)(Code)(Java Doc) public String toString()(Code)(Java Doc) protected void writeMessageBody(OutputStream stream) throws IOException(Code)(Java Doc)
|
|
|