com.vaadin.terminal
Interface URIHandler

All Superinterfaces:
Serializable
All Known Implementing Classes:
Application, Window

public interface URIHandler
extends Serializable

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)
Handles a given URI. If the URI handler to emit a downloadable stream it should return a DownloadStream object.

Parameters:
context - the base URL
relativeUri - a URI relative to context
Returns:
A downloadable stream or null if no stream is provided


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.