| java.lang.Object com.meterware.httpunit.WebRequest com.meterware.httpunit.MessageBodyWebRequest com.meterware.httpunit.PostMethodWebRequest
Constructor Summary | |
public | PostMethodWebRequest(String urlString) Constructs a web request using a specific absolute url string. | public | PostMethodWebRequest(String urlString, InputStream source, String contentType) Constructs a web request using a specific absolute url string and input stream. | public | PostMethodWebRequest(URL urlBase, String urlString, String target) Constructs a web request with a specific target. | | PostMethodWebRequest(WebForm sourceForm, SubmitButton button, int x, int y) Constructs a web request for a form submitted by clicking a button. | | PostMethodWebRequest(WebForm sourceForm, ParameterHolder parameterHolder, SubmitButton button, int x, int y) | | PostMethodWebRequest(WebForm sourceForm) Constructs a web request for a form submitted via a script. |
PostMethodWebRequest | public PostMethodWebRequest(String urlString)(Code) | | Constructs a web request using a specific absolute url string.
|
PostMethodWebRequest | public PostMethodWebRequest(String urlString, 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 |
PostMethodWebRequest | public PostMethodWebRequest(URL urlBase, String urlString, String target)(Code) | | Constructs a web request with a specific target.
|
PostMethodWebRequest | PostMethodWebRequest(WebForm sourceForm, SubmitButton button, int x, int y)(Code) | | Constructs a web request for a form submitted by clicking a button.
|
PostMethodWebRequest | PostMethodWebRequest(WebForm sourceForm)(Code) | | Constructs a web request for a form submitted via a script.
|
getMethod | public String getMethod()(Code) | | Returns the HTTP method defined for this request.
|
getQueryString | public String getQueryString()(Code) | | Returns the query string defined for this request.
|
maySelectFile | protected boolean maySelectFile(String parameterName)(Code) | | Returns true if selectFile may be called with this parameter.
|
setMimeEncoded | public void setMimeEncoded(boolean mimeEncoded)(Code) | | Selects whether MIME-encoding will be used for this request. MIME-encoding changes the way the request is sent
and is required for requests which include file parameters. This method may only be called for a request
which was not created from a form.
|
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)
|
|
|