Java Doc for WebRequestSource.java in  » Testing » HttpUnit » com » meterware » httpunit » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » HttpUnit » com.meterware.httpunit 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.meterware.httpunit.ParameterHolder
      com.meterware.httpunit.WebRequestSource

All known Subclasses:   com.meterware.httpunit.FixedURLWebRequestSource,  com.meterware.httpunit.WebForm,
WebRequestSource
abstract public class WebRequestSource extends ParameterHolder implements HTMLElement(Code)
Base class for objects which can be clicked to generate new web requests.
author:
   Russell Gold



Constructor Summary
 WebRequestSource(WebResponse response, Node node, URL baseURL, String destination, FrameSelector frame, String defaultTarget)
     Contructs a web request source.

Method Summary
abstract protected  voidaddPresetParameter(String name, String value)
     Records a parameter defined by including it in the destination URL.
public  StringgetAttribute(String name)
    
 StringgetAttribute(String name, String defaultValue)
    
final protected  WebResponsegetBaseResponse()
     Returns the web response containing this request source.
protected  URLgetBaseURL()
    
public  StringgetClassName()
     Returns the class associated with this request source.
protected  WebResponsegetCurrentFrameContents()
    
public  NodegetDOMSubtree()
     Returns a copy of the domain object model subtree associated with this entity.
protected  StringgetDestination()
    
abstract protected  StringgetEmptyParameterValue()
    
public  StringgetFragmentIdentifier()
     Returns the fragment identifier for this request source, used to identifier an element within an HTML document.
public  FrameSelectorgetFrame()
     Returns the frame containing this request source.
protected  HTMLPagegetHTMLPage()
     Returns the HTMLPage associated with this request source.
public  StringgetID()
     Returns the ID associated with this request source.
public  StringgetName()
     Returns the name associated with this request source.
protected  NodegetNode()
     Returns the actual DOM for this request source, not a copy.
public  StringgetPageFrame()
     Returns the name of the frame containing this request source.
abstract public  String[]getParameterNames()
     Returns an array containing the names of any parameters to be sent on a request based on this request source.
abstract public  String[]getParameterValues(String name)
     Returns the values of the named parameter.
 StringgetRelativePage()
     Returns the URL relative to the current page which will handle the request.
protected  StringgetRelativeURL()
    
abstract public  WebRequestgetRequest()
     Creates and returns a web request from this request source.
public  StringgetTagName()
    
public  StringgetTarget()
     Returns the target for this request source.
public  StringgetText()
     Returns the text value of this block.
public  StringgetTitle()
     Returns the title associated with this request source.
public  booleanisSupportedAttribute(String name)
    
final protected  voidloadDestinationParameters()
     Extracts any parameters specified as part of the destination URL, calling addPresetParameter for each one in the order in which they are found.
protected  voidsetDestination(String destination)
    
protected  voidsetTargetAttribute(String value)
    
protected  WebResponsesubmitRequest(String event, WebRequest request)
    
final protected  WebResponsesubmitRequest(WebRequest request)
     Submits a request to the web client from which this request source was originally obtained.


Constructor Detail
WebRequestSource
WebRequestSource(WebResponse response, Node node, URL baseURL, String destination, FrameSelector frame, String defaultTarget)(Code)
Contructs a web request source.
Parameters:
  response - the response from which this request source was extracted
Parameters:
  node - the DOM subtree defining this request source
Parameters:
  baseURL - the URL on which to base all releative URL requests
Parameters:
  destination - the relative URL to which requests will be directed




Method Detail
addPresetParameter
abstract protected void addPresetParameter(String name, String value)(Code)
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.



getAttribute
public String getAttribute(String name)(Code)



getAttribute
String getAttribute(String name, String defaultValue)(Code)



getBaseResponse
final protected WebResponse getBaseResponse()(Code)
Returns the web response containing this request source.



getBaseURL
protected URL getBaseURL()(Code)



getClassName
public String getClassName()(Code)
Returns the class associated with this request source.



getCurrentFrameContents
protected WebResponse getCurrentFrameContents()(Code)



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



getDestination
protected String getDestination()(Code)



getEmptyParameterValue
abstract protected String getEmptyParameterValue()(Code)



getFragmentIdentifier
public String getFragmentIdentifier()(Code)
Returns the fragment identifier for this request source, used to identifier an element within an HTML document.



getFrame
public FrameSelector getFrame()(Code)
Returns the frame containing this request source.



getHTMLPage
protected HTMLPage getHTMLPage() throws SAXException(Code)
Returns the HTMLPage associated with this request source.



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



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



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



getPageFrame
public String getPageFrame()(Code)
Returns the name of the frame containing this request source.



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



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



getRelativePage
String getRelativePage()(Code)
Returns the URL relative to the current page which will handle the request.



getRelativeURL
protected String getRelativeURL()(Code)



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



getTagName
public String getTagName()(Code)



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



getText
public String getText()(Code)
Returns the text value of this block.



getTitle
public String getTitle()(Code)
Returns the title associated with this request source.



isSupportedAttribute
public boolean isSupportedAttribute(String name)(Code)



loadDestinationParameters
final protected void loadDestinationParameters()(Code)
Extracts any parameters specified as part of the destination URL, calling addPresetParameter for each one in the order in which they are found.



setDestination
protected void setDestination(String destination)(Code)



setTargetAttribute
protected void setTargetAttribute(String value)(Code)



submitRequest
protected WebResponse submitRequest(String event, WebRequest request) throws IOException, SAXException(Code)



submitRequest
final protected WebResponse submitRequest(WebRequest request) throws IOException, SAXException(Code)
Submits a request to the web client from which this request source was originally obtained.



Methods inherited from com.meterware.httpunit.ParameterHolder
String getCharacterSet()(Code)(Java Doc)
abstract String[] getParameterNames()(Code)(Java Doc)
abstract String[] getParameterValues(String name)(Code)(Java Doc)
boolean isFileParameter(String name)(Code)(Java Doc)
abstract boolean isSubmitAsMime()(Code)(Java Doc)
abstract void recordParameters(ParameterProcessor processor) throws IOException(Code)(Java Doc)
abstract void recordPredefinedParameters(ParameterProcessor processor) throws IOException(Code)(Java Doc)
abstract void removeParameter(String name)(Code)(Java Doc)
void selectImageButtonPosition(SubmitButton imageButton, int x, int y)(Code)(Java Doc)
abstract void setParameter(String name, String value)(Code)(Java Doc)
abstract void setParameter(String name, String[] values)(Code)(Java Doc)
abstract void setParameter(String name, UploadFileSpec[] files)(Code)(Java Doc)
abstract void setSubmitAsMime(boolean mimeEncoded)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.