01: /*
02: * $Id: InternalErrorPage.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: * Internal error display page.
26: *
27: * @author Jonathan Locke
28: */
29: public class InternalErrorPage extends WebPage {
30: private static final long serialVersionUID = 1L;
31:
32: /**
33: * Constructor.
34: */
35: public InternalErrorPage() {
36: add(homePageLink("homePageLink"));
37: }
38:
39: /**
40: * @see wicket.markup.html.WebPage#configureResponse()
41: */
42: protected void configureResponse() {
43: super .configureResponse();
44: getWebRequestCycle()
45: .getWebResponse()
46: .getHttpServletResponse()
47: .setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
48: }
49:
50: /**
51: * @see wicket.Component#isVersioned()
52: */
53: public boolean isVersioned() {
54: return false;
55: }
56:
57: /**
58: * @see wicket.Page#isErrorPage()
59: */
60: public boolean isErrorPage() {
61: return true;
62: }
63: }
|