| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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(String name,
                   String value)Records a parameter defined by including it in the destination URL. | 
|  String | asText()Returns the text value of this link. | 
|  String[] | getParameterNames()Returns an array containing the names of any parameters defined as part of this link's URL. | 
|  String[] | getParameterValues(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. | 
|  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 String getURLString()
public String asText()
public WebRequest getRequest()
getRequest in class WebRequestSourcepublic String[] getParameterNames()
getParameterNames in class WebRequestSourcepublic String[] getParameterValues(String name)
getParameterValues in class WebRequestSource
protected void addPresetParameter(String name,
                                  String value)
WebRequestSourceaddPresetParameter in class WebRequestSource| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||