org.apache.tapestry.test
Class ScriptDescriptor
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.test.ScriptDescriptor
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
- public class ScriptDescriptor
- extends org.apache.hivemind.impl.BaseLocatable
Top level object for test scripts.
- Since:
- 4.0
- Author:
- Howard Lewis Ship
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
getLocation, setLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptDescriptor
public ScriptDescriptor()
getContextName
public java.lang.String getContextName()
getRootDirectory
public java.lang.String getRootDirectory()
setContextName
public void setContextName(java.lang.String string)
setRootDirectory
public void setRootDirectory(java.lang.String string)
getServletDescriptor
public ServletDescriptor getServletDescriptor(java.lang.String name)
- Gets the named servlet descriptor, or returns null.
addServletDescriptor
public void addServletDescriptor(ServletDescriptor sd)
- Adds a new ServletDescriptor to the script.
- Throws:
org.apache.hivemind.ApplicationRuntimeException
- if the descriptor's name
duplicates an existing descriptor
addRequestDescriptor
public void addRequestDescriptor(RequestDescriptor rd)
getRequestDescriptors
public java.util.List getRequestDescriptors()
- Returns:
- List of
RequestDescriptor
- See Also:
addRequestDescriptor(RequestDescriptor)
getDefaultServletDescriptor
public ServletDescriptor getDefaultServletDescriptor()