01: /*
02: * ==============================================================================
03: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
04: * use this file except in compliance with the License. You may obtain a copy of
05: * the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software
10: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12: * License for the specific language governing permissions and limitations under
13: * the License.
14: */
15: package wicket.protocol.http.portlet;
16:
17: import org.apache.commons.logging.Log;
18: import org.apache.commons.logging.LogFactory;
19:
20: import wicket.Response;
21: import wicket.request.IRequestCycleProcessor;
22:
23: /**
24: * A portlet RequestCycle implementation for portlet ActionRequest.
25: *
26: * @author Janne Hietamäki
27: *
28: */
29: public class PortletActionRequestCycle extends PortletRequestCycle {
30: /** Logging object */
31: private static final Log log = LogFactory
32: .getLog(PortletActionRequestCycle.class);
33:
34: /**
35: * @param session
36: * @param request
37: * @param response
38: */
39: public PortletActionRequestCycle(WicketPortletSession session,
40: WicketPortletRequest request, Response response) {
41: super (session, request, response);
42: }
43:
44: /**
45: * returns the PortletApplications action request cycle processor. See
46: * {@link PortletApplication#getActionRequestCycleProcessor()}.
47: *
48: * @see wicket.RequestCycle#getProcessor()
49: */
50:
51: public final IRequestCycleProcessor getProcessor() {
52: PortletApplication application = (PortletApplication) getApplication();
53: return application.getActionRequestCycleProcessor();
54: }
55: }
|