Package io.fluentlenium.core.url
Class UrlTemplate
java.lang.Object
io.fluentlenium.core.url.UrlTemplate
A simple template engine for URL parameters.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UrlTemplate
Creates a new template- Parameters:
template
- template string
-
-
Method Details
-
clear
public void clear()Remove all property values. -
getParameters
Get all declared parameter parameters of this template.- Returns:
- declared parameter parameters
-
add
Add property value.- Parameters:
value
- property value- Returns:
this
reference to chain calls
-
put
Set property value.- Parameters:
name
- namevalue
- value- Returns:
this
reference to chain calls
-
addAll
Add all property properties- Parameters:
values
- property properties- Returns:
this
reference to chain calls
-
put
Set property properties.- Parameters:
values
- properties- Returns:
this
reference to chain calls
-
render
Render the string.- Returns:
- rendered url, based on template with parameters applied.
-
parse
Get properties from string- Parameters:
input
- string- Returns:
- properties
-