GlideURI - Scoped
-
- UpdatedJan 30, 2025
- 1 minute read
- Yokohama
- API reference
The GlideURI API provides methods to handle URI parameters in a scoped application.
See also: GlideURI - Global .
Scoped GlideURI - GlideURI()
Instantiates a GlideURI object.
Name | Type | Description |
---|---|---|
None |
Scoped GlideURI - get(String name)
Returns the value of the specified parameter.
Name | Type | Description |
---|---|---|
name | String | The parameter name. |
Type | Description |
---|---|
String | The value for the specified parameter. |
Example
Output:
Scoped GlideURI - getFileFromPath()
Returns the file name portion of the URI.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The file name portion of the URI. |
Example
Scoped GlideURI - set(String name, String value)
Sets the specified parameter to the specified value.
Name | Type | Description |
---|---|---|
name | String | The parameter name. |
value | String | The value. |
Type | Description |
---|---|
None |
Example
Output:
Scoped GlideURI - toString(String path)
Reconstructs the URI string and performs the proper URL encoding by converting non-valid characters to their URL code. For example, converting & to '%26'.
Parameters set with the set() method are encoded with the URI as well.
Name | Type | Description |
---|---|---|
path | String | The base portion of the system URL to which the URI is appended. |
Type | Description |
---|---|
String | The URL. |