com.itmill.toolkit.terminal
Interface URIHandler

All Known Implementing Classes:
Application, Window

public interface URIHandler

Interface implemented by all the classes capable of handling URI:s.

URIHandler can provide DownloadStream for transferring data for client.

Since:
3.0
Version:
5.3.0
Author:
IT Mill Ltd.

Nested Class Summary
static interface URIHandler.ErrorEvent
          URIHandler error event.
 
Method Summary
 DownloadStream handleURI(URL context, String relativeUri)
          Handles a given relative URI.
 

Method Detail

handleURI

DownloadStream handleURI(URL context,
                         String relativeUri)
Handles a given relative URI. If the URI handling wants to emit a downloadable stream it can return download stream object. If no emitting stream is necessary, null should be returned instead.

Parameters:
context - the URl.
relativeUri - the relative uri.
Returns:
the download stream object.


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.