1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 from muntjac.terminal.terminal import IErrorEvent as ITerminalErrorEvent
17
18
20 """A IUriHandler is used for handling URIs requested by the user and can
21 optionally provide a L{DownloadStream}. If a L{DownloadStream}
22 is returned by L{handleURI}, the stream is sent to the client.
23
24 @author: Vaadin Ltd.
25 @author: Richard Lincoln
26 @version: 1.1.2
27 """
28
30 """Handles a given URI. If the URI handler to emit a downloadable
31 stream it should return a C{DownloadStream} object.
32
33 @param context:
34 the base URL
35 @param relativeUri:
36 a URI relative to C{context}
37 @return: A downloadable stream or null if no stream is provided
38 """
39 pass
40
41
43 """An C{IErrorEvent} implementation for IUriHandler."""
44
46 """Gets the IUriHandler that caused this error.
47
48 @return: the IUriHandler that caused the error
49 """
50 pass
51