|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.meterware.httpunit.ParameterHolder | +--com.meterware.httpunit.WebRequestSource | +--com.meterware.httpunit.WebLink
This class represents a link in an HTML page. Users of this class may examine the
structure of the link (as a DOM), or create a WebRequest
to simulate clicking
on the link.
Method Summary | |
protected void |
addPresetParameter(java.lang.String name,
java.lang.String value)
Records a parameter defined by including it in the destination URL. |
java.lang.String |
asText()
Returns the text value of this link. |
java.lang.String[] |
getParameterNames()
Returns an array containing the names of any parameters defined as part of this link's URL. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the multiple default values of the named parameter. |
WebRequest |
getRequest()
Creates and returns a web request which will simulate clicking on this link. |
java.lang.String |
getURLString()
Returns the URL referenced by this link. |
Methods inherited from class com.meterware.httpunit.WebRequestSource |
getBaseURL, getDestination, getDOMSubtree, getID, getName, getNode, getTarget, loadDestinationParameters |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getURLString()
public java.lang.String asText()
public WebRequest getRequest()
getRequest
in class WebRequestSource
public java.lang.String[] getParameterNames()
getParameterNames
in class WebRequestSource
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues
in class WebRequestSource
protected void addPresetParameter(java.lang.String name, java.lang.String value)
WebRequestSource
addPresetParameter
in class WebRequestSource
|
Copyright © 2000-2002 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |