com.meterware.httpunit
Class GetMethodWebRequest
java.lang.Object
com.meterware.httpunit.WebRequest
com.meterware.httpunit.HeaderOnlyWebRequest
com.meterware.httpunit.GetMethodWebRequest
- public class GetMethodWebRequest
- extends HeaderOnlyWebRequest
An HTTP request using the GET method.
Constructor Summary |
GetMethodWebRequest(java.lang.String urlString)
Constructs a web request using a specific absolute url string. |
GetMethodWebRequest(java.net.URL urlBase,
java.lang.String urlString)
Constructs a web request using a base URL and a relative url string. |
GetMethodWebRequest(java.net.URL urlBase,
java.lang.String urlString,
java.lang.String target)
Constructs a web request with a specific target. |
Method Summary |
java.lang.String |
getMethod()
Returns the HTTP method defined for this request. |
Methods inherited from class com.meterware.httpunit.WebRequest |
completeRequest, getCharacterSet, getContentType, getHeaders, getParameter, getParameterHolder, getParameterValues, getRequestParameterNames, getTarget, getURL, getURLBase, getURLString, isFileParameter, isMimeEncoded, maySelectFile, removeParameter, selectFile, selectFile, selectFile, setHeaderField, setImageButtonClickPosition, setParameter, setParameter, setParameter, toString, writeMessageBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GetMethodWebRequest
public GetMethodWebRequest(java.lang.String urlString)
- Constructs a web request using a specific absolute url string.
GetMethodWebRequest
public GetMethodWebRequest(java.net.URL urlBase,
java.lang.String urlString)
- Constructs a web request using a base URL and a relative url string.
GetMethodWebRequest
public GetMethodWebRequest(java.net.URL urlBase,
java.lang.String urlString,
java.lang.String target)
- Constructs a web request with a specific target.
getMethod
public java.lang.String getMethod()
- Returns the HTTP method defined for this request.
- Overrides:
getMethod
in class WebRequest
- Returns:
- the method