Class ViewNavigationDelegate<N extends AbstractViewNavigator>
java.lang.Object
io.jmix.flowui.testassist.navigation.ViewNavigationDelegate<N>
- Type Parameters:
N
- type of navigator (e.g.ViewNavigator
, etc)
Class is designed for helping navigation in UI integration tests.
For building backward navigation URL it uses:
- "http://"
- "localhost"
RouteParameters
QueryParameters
During the navigation Vaadin ignores "http://" and "localhost" parts.
It saves current URL in VaadinSession
and for new navigation will be used as backward
navigation URL.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected ViewNavigationSupport
protected ViewSupport
-
Constructor Summary
ConstructorDescriptionViewNavigationDelegate
(ViewNavigationSupport navigationSupport, ViewSupport viewSupport) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
During the processing URL for navigation Vaadin ignores protocol and host.protected URL
protected String
During the processing URL for navigation Vaadin ignores protocol and host.protected com.vaadin.flow.router.RouteConfiguration
void
saveCurrentNavigation
(Class<? extends View> viewClass, com.vaadin.flow.router.RouteParameters routeParameters, com.vaadin.flow.router.QueryParameters queryParameters)
-
Field Details
-
CURRENT_NAVIGATION_URL_ATTRIBUTE
- See Also:
-
viewSupport
-
-
Constructor Details
-
Method Details
-
fetchCurrentUrl
-
getRouteConfiguration
protected com.vaadin.flow.router.RouteConfiguration getRouteConfiguration() -
getHostUrl
-
getProtocol
During the processing URL for navigation Vaadin ignores protocol and host. The default value is "http://".- Returns:
- protocol
-
getHostAddress
During the processing URL for navigation Vaadin ignores protocol and host. The default value is "localhost".- Returns:
- host address
-