Package io.jmix.ui.navigation
Class UrlTools
java.lang.Object
io.jmix.ui.navigation.UrlTools
Helper for working with URL.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Nested screens route regexp.protected static final Pattern
protected static final Pattern
protected static final String
URL params regexp.protected static final String
Params route regexp.protected static final Pattern
protected static final String
Root route regexp.protected static final Pattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractParams
(String paramsString) protected URI
getEmptyFragmentUri
(com.vaadin.server.Page page) static boolean
headless()
INTERNALprotected NavigationState
parseNestedRoute
(String uriFragment) protected NavigationState
parseParamsRoute
(String uriFragment) protected NavigationState
parseRootRoute
(String uriFragment) parseState
(String uriFragment) void
void
replaceState
(String navigationState, com.vaadin.ui.UI ui)
-
Field Details
-
ROOT_ROUTE
Root route regexp. Intended to match first part of a fragment:/#<root_route>
- See Also:
-
ROOT_ROUTE_PATTERN
-
NESTED_ROUTE
Nested screens route regexp. Intended to match a fragment that contains root and nested screen routes/#<root_route>/[<url_state_mark>/]<nested_screen_route>[/<nested_screen_route>]
- See Also:
-
NESTED_ROUTE_PATTERN
-
PARAMS_ROUTE
Params route regexp. Intended to match a fragment that contains root and nested screen routes and URL params part:/#<root_route>/[<url_state_mark>/]<nested_screen_route>?<params_part>
- See Also:
-
PARAMS_ROUTE_PATTERN
-
PARAMS_REGEX
URL params regexp. Intended to match param pairs:p1=v2[&p2=v2]...
- See Also:
-
PARAMS_PATTERN
-
-
Constructor Details
-
UrlTools
public UrlTools()
-
-
Method Details
-
pushState
-
replaceState
-
parseState
-
getEmptyFragmentUri
-
parseRootRoute
-
parseNestedRoute
-
parseParamsRoute
-
extractParams
-
headless
public static boolean headless()INTERNAL- Returns:
- whether application is running in headless mode
-