org.apache.tapestry.test
Class ScriptDescriptor

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by 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

Constructor Summary
ScriptDescriptor()
           
 
Method Summary
 void addRequestDescriptor(RequestDescriptor rd)
           
 void addServletDescriptor(ServletDescriptor sd)
          Adds a new ServletDescriptor to the script.
 java.lang.String getContextName()
           
 ServletDescriptor getDefaultServletDescriptor()
           
 java.util.List getRequestDescriptors()
           
 java.lang.String getRootDirectory()
           
 ServletDescriptor getServletDescriptor(java.lang.String name)
          Gets the named servlet descriptor, or returns null.
 void setContextName(java.lang.String string)
           
 void setRootDirectory(java.lang.String string)
           
 
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
 

Constructor Detail

ScriptDescriptor

public ScriptDescriptor()
Method Detail

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()