| java.lang.Object com.meterware.httpunit.ParameterHolder com.meterware.httpunit.WebRequestSource com.meterware.httpunit.FixedURLWebRequestSource
All known Subclasses: com.meterware.httpunit.WebImage, com.meterware.httpunit.WebLink,
FixedURLWebRequestSource | abstract class FixedURLWebRequestSource extends WebRequestSource (Code) | | An implementation of web request source whose URL does not change under user action.
author: Russell Gold |
Method Summary | |
protected void | addPresetParameter(String name, String value) | String | getCharacterSet() | protected String | getEmptyParameterValue() | public String[] | getParameterNames() Returns an array containing the names of any parameters defined as part of this link's URL. | public String[] | getParameterValues(String name) Returns the multiple default values of the named parameter. | public WebRequest | getRequest() Creates and returns a web request which will simulate clicking on this link. | boolean | isFileParameter(String name) Returns true if the specified parameter is a file field. | boolean | isSubmitAsMime() | void | recordParameters(ParameterProcessor processor) Iterates through the parameters in this holder, recording them in the supplied parameter processor. | void | recordPredefinedParameters(ParameterProcessor processor) Iterates through the fixed, predefined parameters in this holder, recording them in the supplied parameter processor.\
These parameters always go on the URL, no matter what encoding method is used. | void | removeParameter(String name) Removes a parameter name from this collection. | void | selectImageButtonPosition(SubmitButton imageButton, int x, int y) Specifies the position at which an image button (if any) was clicked. | protected void | setDestination(String destination) | void | setParameter(String name, String value) Sets the value of a parameter in a web request. | void | setParameter(String name, String[] values) Sets the multiple values of a parameter in a web request. | void | setParameter(String name, UploadFileSpec[] files) Sets the multiple values of a file upload parameter in a web request. | void | setSubmitAsMime(boolean mimeEncoded) |
getEmptyParameterValue | protected String getEmptyParameterValue()(Code) | | |
getParameterNames | public String[] getParameterNames()(Code) | | Returns an array containing the names of any parameters defined as part of this link's URL.
|
getParameterValues | public String[] getParameterValues(String name)(Code) | | Returns the multiple default values of the named parameter.
|
getRequest | public WebRequest getRequest()(Code) | | Creates and returns a web request which will simulate clicking on this link.
|
isFileParameter | boolean isFileParameter(String name)(Code) | | Returns true if the specified parameter is a file field.
|
isSubmitAsMime | boolean isSubmitAsMime()(Code) | | |
recordParameters | void recordParameters(ParameterProcessor processor) throws IOException(Code) | | Iterates through the parameters in this holder, recording them in the supplied parameter processor.
|
recordPredefinedParameters | void recordPredefinedParameters(ParameterProcessor processor) throws IOException(Code) | | Iterates through the fixed, predefined parameters in this holder, recording them in the supplied parameter processor.\
These parameters always go on the URL, no matter what encoding method is used.
|
removeParameter | void removeParameter(String name)(Code) | | Removes a parameter name from this collection.
|
selectImageButtonPosition | void selectImageButtonPosition(SubmitButton imageButton, int x, int y)(Code) | | Specifies the position at which an image button (if any) was clicked.
|
setDestination | protected void setDestination(String destination)(Code) | | |
setParameter | void setParameter(String name, String value)(Code) | | Sets the value of a parameter in a web request.
|
setParameter | void setParameter(String name, String[] values)(Code) | | Sets the multiple values of a parameter in a web request.
|
setParameter | void setParameter(String name, UploadFileSpec[] files)(Code) | | Sets the multiple values of a file upload parameter in a web request.
|
setSubmitAsMime | void setSubmitAsMime(boolean mimeEncoded)(Code) | | |
|
|