1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.pluto.portalImpl.core;
21
22 import javax.servlet.http.HttpServletRequest;
23
24 import org.apache.pluto.om.window.PortletWindow;
25 import org.apache.pluto.services.title.DynamicTitleService;
26
27 public class DynamicTitleServiceImpl implements DynamicTitleService
28 {
29
30 DynamicTitleServiceImpl()
31 {
32 }
33
34 public void setDynamicTitle(PortletWindow window,
35 HttpServletRequest request,
36 String dynamicTitle)
37 {
38 request.setAttribute("org.apache.pluto.dynamic_title", dynamicTitle);
39 }
40
41 public String getDynamicTitle(PortletWindow window,
42 HttpServletRequest request)
43 {
44 return (String)request.getAttribute("org.apache.pluto.dynamic_title");
45 }
46
47
48 }