1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Request start and end listener"""
17
18
20 """L{Application} that implements this interface gets notified
21 of request start and end by terminal.
22
23 Interface can be used for several helper tasks including:
24
25 - Opening and closing database connections
26 - Implementing L{ThreadLocal}
27 - Setting/Getting L{Cookie}
28
29 Alternatives for implementing similar features are are Servlet
30 L{Filter}s and L{TransactionListener}s in Muntjac.
31 """
32
34 """This method is called before L{Terminal} applies the
35 request to Application.
36 """
37 raise NotImplementedError
38
39
41 """This method is called at the end of each request.
42 """
43 raise NotImplementedError
44