WebPath Object

Paths and path components in a web application are represented as instances of the IWebPath object.

Methods

    String path.getPath()

Returns a full path, e.g., /path/to/somewhere.php.

    String path.getPathComponent()

Returns the path component, e.g. 'somewhere.php'.

    URI getUri()

Returns the URI associated with the path.

    boolean path.isGetTarget()

    boolean path.isPostTarget()

In each case, returns true if the path is either a GET or a POST target.

    String path.getPathType()

Returns one of the following types:

  • PATH_UNKNOWN
  • PATH_DIRECTORY
  • PATH_FILE

Home > API > IWebPath-Object

Have feedback on Vega? Our documentation? Please tell us.