Address
interface and provides methods that access the various parts of the URI. The parameters in the path segments of the uniform resource identifier are stored in name value pairs. If parameter names are not unique across the path segments then only the deepest parameter will be stored from the path segment. For example if the URI represented was http://domain/path1;x=y/path2;x=z
the value for the parameter named x
would be z
. This will normalize the path part of the uniform resource identifier. A normalized path is one that contains no back references like "./" and "../". The normalized path will not contain the path parameters.
The setPath
method is used to reset the path this uniform resource identifier has, it also resets the parameters. The parameters are extracted from the new path given.
@author Niall Gallagher
|
|