01: /*
02: * $Id: PageExpiredErrorPage.java 459117 2006-02-09 13:16:04Z jcompagner $
03: * $Revision: 459117 $ $Date: 2006-02-09 14:16:04 +0100 (Thu, 09 Feb 2006) $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.markup.html.pages;
19:
20: import javax.servlet.http.HttpServletResponse;
21:
22: import wicket.markup.html.WebPage;
23:
24: /**
25: * Page expired error page.
26: *
27: * @author Jonathan Locke
28: */
29: public class PageExpiredErrorPage extends WebPage {
30: private static final long serialVersionUID = 1L;
31:
32: /**
33: * Constructor.
34: */
35: public PageExpiredErrorPage() {
36: add(homePageLink("homePageLink"));
37: }
38:
39: /**
40: * @see wicket.markup.html.WebPage#configureResponse()
41: */
42: protected void configureResponse() {
43: super .configureResponse();
44: getWebRequestCycle().getWebResponse().getHttpServletResponse()
45: .setStatus(HttpServletResponse.SC_NOT_FOUND);
46: }
47:
48: /**
49: * @see wicket.Component#isVersioned()
50: */
51: public boolean isVersioned() {
52: return false;
53: }
54:
55: /**
56: * @see wicket.Page#isErrorPage()
57: */
58: public boolean isErrorPage() {
59: return true;
60: }
61: }
|