01: /*
02: * Created on Mar 18, 2003
03: */
04: package net.sf.jportlet.impl;
05:
06: import net.sf.jportlet.portlet.Portlet;
07: import net.sf.jportlet.portlet.PortletRequest;
08: import net.sf.jportlet.portlet.PortletResponse;
09: import net.sf.jportlet.portlet.event.Event;
10:
11: /**
12: * Implementation of {@link net.sf.jportlet.portlet.event.Event}
13: *
14: * @author <a href="mailto:tchbansi@sourceforge.net">Herve Tchepannou</a>
15: */
16: public class EventImpl implements Event {
17: //~ Instance fields --------------------------------------------------------
18:
19: protected PortletRequestImpl _request;
20: protected PortletResponseImpl _response;
21:
22: //~ Constructors -----------------------------------------------------------
23:
24: public EventImpl(PortletRequestImpl request,
25: PortletResponseImpl response) {
26: _request = request;
27: _response = response;
28: }
29:
30: //~ Methods ----------------------------------------------------------------
31:
32: /**
33: * @see net.sf.jportlet.portlet.event.Event#getPortlet()
34: */
35: public Portlet getPortlet() {
36: return _request.getProxy().getPortlet();
37: }
38:
39: /**
40: * @see net.sf.jportlet.portlet.event.Event#getPortletRequest()
41: */
42: public PortletRequest getPortletRequest() {
43: return _request;
44: }
45:
46: /**
47: * @see net.sf.jportlet.portlet.event.Event#getPortletResponse()
48: */
49: public PortletResponse getPortletResponse() {
50: return _response;
51: }
52: }
|