com.vaadin.flow.shared.
Class VaadinUriResolver
- java.lang.Object
-
- com.vaadin.flow.shared.VaadinUriResolver
-
All Implemented Interfaces:
Direct Known Subclasses:
BootstrapHandler.BootstrapUriResolver
,ServiceContextUriResolver
public abstract class VaadinUriResolver extends Object implements Serializable
Utility for translating special Vaadin URIs into URLs usable by the browser. This is an abstract class performing the main logic in
resolveVaadinUri(String, String)
.Concrete implementations of this class should implement
Serializable
in case a reference to an object of this class is stored on the server side.Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Constructor Summary
Constructors Constructor Description VaadinUriResolver()
-
Method Summary
All Methods Modifier and Type Method Description protected String
resolveVaadinUri​(String uri, String servletToContextRoot)
Translates a Vaadin URI to a URL that can be loaded by the browser.
-
-
-
Method Detail
-
resolveVaadinUri
protected String resolveVaadinUri​(String uri, String servletToContextRoot)
Translates a Vaadin URI to a URL that can be loaded by the browser. The following URI schemes are supported:
"context://"
resolves to the application context root"base://"
- resolves to the base URI of the page
http://
orhttps://
are passed through this method unmodified.Parameters:
uri
- the URI to resolveservletToContextRoot
- the relative path from the servlet path (used as base path in the client) to the context rootReturns:
the resolved URI
-
-