Class UrlTemplate
java.lang.Object
org.openqa.selenium.remote.http.UrlTemplate
A bad implementation of URL Templates, but enough for our needs.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable UrlTemplate.Match@Nullable UrlTemplate.MatchMatches a URL against this template after stripping a leading prefix.
-
Constructor Details
-
UrlTemplate
-
-
Method Details
-
match
- Returns:
- A
UrlTemplate.Matchwith all parameters filled if successful, null otherwise.
-
match
Matches a URL against this template after stripping a leading prefix.The
prefixis treated literally (not as a regex) and stripped from the start ofmatchAgainstbefore matching, unless it is empty or"/".- Parameters:
matchAgainst- the URL (or path) to match against this templateprefix- a literal prefix to strip frommatchAgainstbefore matching- Returns:
- a
UrlTemplate.Matchwith all parameters filled if successful,nullotherwise
-