|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.meterware.httpunit.WebRequest
A request sent to a web server.
Constructor Summary | |
protected |
WebRequest(java.lang.String urlString)
Constructs a web request using an absolute URL string. |
protected |
WebRequest(java.net.URL urlBase,
java.lang.String urlString)
Constructs a web request using a base URL and a relative URL string. |
protected |
WebRequest(WebRequest baseRequest,
java.lang.String urlString)
Constructs a web request using a base request and a relative URL string. |
Method Summary | |
protected void |
completeRequest(java.net.URLConnection connection)
Performs any additional processing necessary to complete the request. |
java.lang.String |
getParameter(java.lang.String name)
Returns the value of a parameter in this web request. |
protected java.lang.String |
getParameterString()
|
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the multiple default values of the named parameter. |
abstract java.net.URL |
getURL()
Returns the final URL associated with this web request. |
protected java.net.URL |
getURLBase()
|
protected java.lang.String |
getURLString()
|
protected boolean |
hasNoParameters()
|
void |
removeParameter(java.lang.String name)
Removes a parameter from this web request. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets the value of a parameter in a web request. |
void |
setParameter(java.lang.String name,
java.lang.String[] values)
Sets the multiple values of a parameter in a web request. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
protected WebRequest(java.lang.String urlString)
protected WebRequest(java.net.URL urlBase, java.lang.String urlString)
protected WebRequest(WebRequest baseRequest, java.lang.String urlString) throws java.net.MalformedURLException
Method Detail |
public void setParameter(java.lang.String name, java.lang.String value)
public void setParameter(java.lang.String name, java.lang.String[] values)
public java.lang.String getParameter(java.lang.String name)
public java.lang.String[] getParameterValues(java.lang.String name)
public void removeParameter(java.lang.String name)
public abstract java.net.URL getURL() throws java.net.MalformedURLException
protected void completeRequest(java.net.URLConnection connection) throws java.io.IOException
protected final java.net.URL getURLBase()
protected final java.lang.String getURLString()
protected final boolean hasNoParameters()
protected final java.lang.String getParameterString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |