We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.
Interface URIHandler
All Superinterfaces:
All Known Implementing Classes:
- extends Serializable
public interface URIHandler
A URIHandler is used for handling URI:s requested by the user and can
optionally provide a DownloadStream
. If a DownloadStream
is
returned by handleURI(URL, String)
, the stream is sent to the
client.
Since:
3.0
Version:
6.8.18
Author:
Vaadin Ltd.
Nested Class Summary | |
---|---|
static interface |
URIHandler.ErrorEvent
An ErrorEvent implementation for URIHandler. |
Method Summary | |
---|---|
DownloadStream |
handleURI(URL context,
String relativeUri)
Handles a given URI. |
Method Detail |
---|
handleURI
DownloadStream handleURI(URL context,
String relativeUri)
- Parameters:
context
- the base URLrelativeUri
- a URI relative tocontext
- Returns:
- A downloadable stream or null if no stream is provided
Handles a given URI. If the URI handler to emit a downloadable stream it
should return a DownloadStream
object.