Class PathImpl
java.lang.Object
org.springframework.extensions.webscripts.PathImpl
- All Implemented Interfaces:
Path
Basic implementation of a Web Script Path
Used for package & url trees.
- Author:
- davidc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAssociate Web Script with Pathstatic StringconcatPath(String path1, String path2) Helper to concatenate pathscreateChildPath(String path) Create a Child PathPath[]Gets the child pathsgetName()Gets the name of the path (last path segment)Gets the parent pathgetPath()Gets the full pathGets Web Scripts associated with this pathtoString()
-
Constructor Details
-
PathImpl
Construct- Parameters:
path- String
-
-
Method Details
-
concatPath
Helper to concatenate paths- Parameters:
path1- Stringpath2- String- Returns:
- concatenated path
-
createChildPath
Create a Child Path- Parameters:
path- child path name- Returns:
- child path
-
addScript
Associate Web Script with Path- Parameters:
script- WebScript
-
getChildren
Description copied from interface:PathGets the child paths- Specified by:
getChildrenin interfacePath- Returns:
- child paths
-
getScripts
Description copied from interface:PathGets Web Scripts associated with this path- Specified by:
getScriptsin interfacePath- Returns:
- web scripts
-
getName
Description copied from interface:PathGets the name of the path (last path segment) -
getParent
Description copied from interface:PathGets the parent path -
getPath
Description copied from interface:PathGets the full path -
toString
-