A marker class wrapping around a String
that can be used with Page.to for navigating to page urls that contain a fragment
identifier.
Type Params | Return Type | Name and description |
---|---|---|
|
static UrlFragment |
of(String fragment) A factory method that creates a url fragment using the passed argument as is. |
|
static UrlFragment |
of(Map<?, ?> fragmentMap) A factory method that creates a url fragment using form encoded representation of the Map passed as the argument.
|
|
String |
toString() |
A factory method that creates a url fragment using the passed argument as is.
fragment
- fragment identifier value A factory method that creates a url fragment using form encoded representation of the Map
passed as the argument.
This method is useful when dealing with single page applications that store state in the fragment identifier by form encoding it.
fragmentMap
- a map that is to be transformed into a form encoded fragmentMap
passed as the argumentGroovy API Documentation for Geb 3.1 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org