Class PathImpl
- java.lang.Object
-
- org.springframework.extensions.webscripts.PathImpl
-
-
Constructor Summary
Constructors Constructor Description PathImpl(java.lang.String path)Construct
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddScript(WebScript script)Associate Web Script with Pathstatic java.lang.StringconcatPath(java.lang.String path1, java.lang.String path2)Helper to concatenate pathsPathImplcreateChildPath(java.lang.String path)Create a Child PathPath[]getChildren()Gets the child pathsjava.lang.StringgetName()Gets the name of the path (last path segment)PathgetParent()Gets the parent pathjava.lang.StringgetPath()Gets the full pathWebScript[]getScripts()Gets Web Scripts associated with this pathjava.lang.StringtoString()
-
-
-
Method Detail
-
concatPath
public static java.lang.String concatPath(java.lang.String path1, java.lang.String path2)Helper to concatenate paths- Parameters:
path1- Stringpath2- String- Returns:
- concatenated path
-
createChildPath
public PathImpl createChildPath(java.lang.String path)
Create a Child Path- Parameters:
path- child path name- Returns:
- child path
-
addScript
public void addScript(WebScript script)
Associate Web Script with Path- Parameters:
script- WebScript
-
getChildren
public Path[] getChildren()
Description copied from interface:PathGets the child paths- Specified by:
getChildrenin interfacePath- Returns:
- child paths
-
getScripts
public WebScript[] getScripts()
Description copied from interface:PathGets Web Scripts associated with this path- Specified by:
getScriptsin interfacePath- Returns:
- web scripts
-
getName
public java.lang.String getName()
Description copied from interface:PathGets the name of the path (last path segment)
-
getPath
public java.lang.String getPath()
Description copied from interface:PathGets the full path
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-