01: /*
02: * $Id: RedirectPageRequestTarget.java 459258 2006-02-13 05:23:54Z jonl $
03: * $Revision: 459258 $
04: * $Date: 2006-02-13 06:23:54 +0100 (Mon, 13 Feb 2006) $
05: *
06: * ==============================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
08: * use this file except in compliance with the License. You may obtain a copy of
09: * the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16: * License for the specific language governing permissions and limitations under
17: * the License.
18: */
19: package wicket.request.target.component.listener;
20:
21: import wicket.IRedirectListener;
22: import wicket.Page;
23: import wicket.RequestCycle;
24:
25: /**
26: * Specialization of page request that denotes that we are actually handling a
27: * redirect request of a page.
28: *
29: * @author Eelco Hillenius
30: */
31: public class RedirectPageRequestTarget extends
32: AbstractListenerInterfaceRequestTarget {
33: /**
34: * Construct.
35: *
36: * @param page
37: * the target of the redirect handling
38: */
39: public RedirectPageRequestTarget(final Page page) {
40: super (page, page, IRedirectListener.INTERFACE);
41: }
42:
43: /**
44: * @see wicket.request.target.IEventProcessor#processEvents(wicket.RequestCycle)
45: */
46: public final void processEvents(final RequestCycle requestCycle) {
47: getRequestListenerInterface().invoke(getPage(), getTarget());
48: }
49: }
|