com.meterware.httpunit
Class WebRequestSource

java.lang.Object
  |
  +--com.meterware.httpunit.ParameterHolder
        |
        +--com.meterware.httpunit.WebRequestSource
Direct Known Subclasses:
WebForm, WebLink

public abstract class WebRequestSource
extends com.meterware.httpunit.ParameterHolder


Method Summary
protected abstract  void addPresetParameter(java.lang.String name, java.lang.String value)
          Records a parameter defined by including it in the destination URL.
protected  java.net.URL getBaseURL()
           
protected  java.lang.String getDestination()
           
 org.w3c.dom.Node getDOMSubtree()
          Returns a copy of the domain object model subtree associated with this entity.
 java.lang.String getID()
          Returns the ID associated with this request source.
 java.lang.String getName()
          Returns the name associated with this request source.
protected  org.w3c.dom.Node getNode()
          Returns the actual DOM for this request source, not a copy.
abstract  java.lang.String[] getParameterNames()
          Returns an array containing the names of any parameters to be sent on a request based on this request source.
abstract  java.lang.String[] getParameterValues(java.lang.String name)
          Returns the values of the named parameter.
abstract  WebRequest getRequest()
          Creates and returns a web request from this request source.
 java.lang.String getTarget()
          Returns the target for this request source.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getID

public java.lang.String getID()
Returns the ID associated with this request source.


getName

public java.lang.String getName()
Returns the name associated with this request source.


getTarget

public java.lang.String getTarget()
Returns the target for this request source.


getDOMSubtree

public org.w3c.dom.Node getDOMSubtree()
Returns a copy of the domain object model subtree associated with this entity.


getRequest

public abstract WebRequest getRequest()
Creates and returns a web request from this request source.


getParameterNames

public abstract java.lang.String[] getParameterNames()
Returns an array containing the names of any parameters to be sent on a request based on this request source.

Overrides:
getParameterNames in class com.meterware.httpunit.ParameterHolder

getParameterValues

public abstract java.lang.String[] getParameterValues(java.lang.String name)
Returns the values of the named parameter.

Overrides:
getParameterValues in class com.meterware.httpunit.ParameterHolder

getBaseURL

protected java.net.URL getBaseURL()

getDestination

protected java.lang.String getDestination()

getNode

protected org.w3c.dom.Node getNode()
Returns the actual DOM for this request source, not a copy.


loadDestinationParameters

protected final 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.


addPresetParameter

protected abstract void addPresetParameter(java.lang.String name,
                                           java.lang.String value)
Records a parameter defined by including it in the destination URL. The value can be null, if the parameter name was not specified with an equals sign.


Copyright © 2000-2002 Russell Gold. See license agreement for rights granted.