com.meterware.httpunit
public abstract class WebRequestSource extends ParameterHolder implements HTMLElement
| Method Summary | |
|---|---|
| protected abstract void | addPresetParameter(String name, String value)
Records a parameter defined by including it in the destination URL.
|
| String | getAttribute(String name) |
| protected WebResponse | getBaseResponse()
Returns the web response containing this request source. |
| protected URL | getBaseURL() |
| String | getClassName()
Returns the class associated with this request source.
|
| protected WebResponse | getCurrentFrameContents() |
| protected String | getDestination() |
| Node | getDOMSubtree()
Returns a copy of the domain object model subtree associated with this entity.
|
| protected abstract String | getEmptyParameterValue() |
| String | getFragmentIdentifier()
Returns the fragment identifier for this request source, used to identifier an element within an HTML document. |
| FrameSelector | getFrame()
Returns the frame containing this request source. |
| protected HTMLPage | getHTMLPage()
Returns the HTMLPage associated with this request source. |
| String | getID()
Returns the ID associated with this request source.
|
| String | getName()
Returns the name associated with this request source.
|
| protected Node | getNode()
Returns the actual DOM for this request source, not a copy.
|
| String | getPageFrame()
Returns the name of the frame containing this request source. |
| abstract String[] | getParameterNames()
Returns an array containing the names of any parameters to be sent on a request based on this request source.
|
| abstract String[] | getParameterValues(String name)
Returns the values of the named parameter.
|
| protected String | getRelativeURL() |
| abstract WebRequest | getRequest()
Creates and returns a web request from this request source.
|
| String | getTagName() |
| String | getTarget()
Returns the target for this request source. |
| String | getText()
Returns the text value of this block.
|
| String | getTitle()
Returns the title associated with this request source.
|
| boolean | isSupportedAttribute(String name) |
| protected void | loadDestinationParameters()
Extracts any parameters specified as part of the destination URL, calling addPresetParameter for each one
in the order in which they are found. |
| protected void | setDestination(String destination) |
| protected void | setTargetAttribute(String value) |
| protected WebResponse | submitRequest(String event, WebRequest request) |
| protected WebResponse | submitRequest(WebRequest request)
Submits a request to the web client from which this request source was originally obtained.
|
Deprecated: as of 1.6, use #getFrame
Returns the name of the frame containing this request source.