1 /*
2 * Copyright 2012-2025 CodeLibs Project and the Others.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13 * either express or implied. See the License for the specific language
14 * governing permissions and limitations under the License.
15 */
16 package org.codelibs.fess.app.web.error;
17
18 import java.util.HashMap;
19 import java.util.Map;
20
21 /**
22 * Form class for handling error page data and search parameters.
23 * This form captures the state of a search request when an error occurs,
24 * allowing the error page to display relevant information and preserve search context.
25 */
26 public class ErrorForm {
27
28 /** Map of form fields and their validation error messages */
29 public Map<String, String[]> fields = new HashMap<>();
30
31 /** Search query parameter that caused the error */
32 public String q;
33
34 /** URL parameter associated with the error */
35 public String url;
36
37 /** Number of results parameter */
38 public String num;
39
40 /** Sort order parameter for search results */
41 public String sort;
42
43 /** Language parameter for search interface */
44 public String lang;
45
46 /**
47 * Default constructor for ErrorForm.
48 */
49 public ErrorForm() {
50 super();
51 }
52 }