java.lang.Object
org.springframework.extensions.webscripts.PathImpl
All Implemented Interfaces:
Path

public class PathImpl extends Object implements Path
Basic implementation of a Web Script Path Used for package & url trees.
Author:
davidc
  • Constructor Details

    • PathImpl

      public PathImpl(String path)
      Construct
      Parameters:
      path - String
  • Method Details

    • concatPath

      public static String concatPath(String path1, String path2)
      Helper to concatenate paths
      Parameters:
      path1 - String
      path2 - String
      Returns:
      concatenated path
    • createChildPath

      public PathImpl createChildPath(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: Path
      Gets the child paths
      Specified by:
      getChildren in interface Path
      Returns:
      child paths
    • getScripts

      public WebScript[] getScripts()
      Description copied from interface: Path
      Gets Web Scripts associated with this path
      Specified by:
      getScripts in interface Path
      Returns:
      web scripts
    • getName

      public String getName()
      Description copied from interface: Path
      Gets the name of the path (last path segment)
      Specified by:
      getName in interface Path
      Returns:
      name
    • getParent

      public Path getParent()
      Description copied from interface: Path
      Gets the parent path
      Specified by:
      getParent in interface Path
      Returns:
      path
    • getPath

      public String getPath()
      Description copied from interface: Path
      Gets the full path
      Specified by:
      getPath in interface Path
      Returns:
      path
    • toString

      public String toString()
      Overrides:
      toString in class Object