View Javadoc

1   /*
2    * Copyright 2004-2010 the Seasar Foundation 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  
17  package org.seasar.cubby;
18  
19  /**
20   * フレームワークで使用する定数クラスです。
21   * 
22   * @author agata
23   * @author baba
24   */
25  public class CubbyConstants {
26  
27  	/** プレフィックス */
28  	private static final String PREFIX = "org.seasar.cubby.";
29  
30  	// request --------------------------------------------------------
31  
32  	/** アクションオブジェクトの要求の属性名 */
33  	public static final String ATTR_ACTION = "action";
34  
35  	/** メッセージリソースを <code>Map</code> に変換したオブジェクトの要求の属性名 */
36  	public static final String ATTR_MESSAGES = "messages";
37  
38  	/** アクションエラーの要求の属性名 */
39  	public static final String ATTR_ERRORS = "errors";
40  
41  	/** コンテキストパスの要求の属性名 */
42  	public static final String ATTR_CONTEXT_PATH = "contextPath";
43  
44  	/** パラメータオブジェクトの要求の属性名 */
45  	public static final String ATTR_PARAMS = PREFIX + "params";
46  
47  	/** 内部フォワード時にルーティング情報を引き渡すための要求の属性名 */
48  	public static final String ATTR_ROUTING = PREFIX + "routing";
49  
50  	/** アクションコンテキストの要求の属性名 */
51  	public static final String ATTR_ACTION_CONTEXT = PREFIX + "actionContext";
52  
53  	/** 型変換失敗の要求の属性名 */
54  	public static final String ATTR_CONVERSION_FAILURES = PREFIX
55  			+ "conversionFailures";
56  
57  	/** バリデーションエラーを表すオブジェクトの要求の属性名 */
58  	public static final String ATTR_VALIDATION_FAIL = PREFIX + "validationFail";
59  
60  	/** フォームオブジェクトのラッパーファクトリの要求の属性名 */
61  	public static final String ATTR_FORM_WRAPPER_FACTORY = PREFIX
62  			+ "formWrapperFactory";
63  
64  	/** フィルターチェインの要求の属性名 */
65  	public static final String ATTR_FILTER_CHAIN = PREFIX + "filterChain";
66  
67  	/** メッセージリソースの属性名 */
68  	public static final String ATTR_MESSAGES_RESOURCE_BUNDLE = PREFIX
69  			+ "messagesResourceBundle";
70  
71  	/** ラップされる前の要求の属性名 */
72  	public static final String ATTR_WRAPEE_REQUEST = PREFIX + "wrapeeRequest";
73  
74  	// session --------------------------------------------------------
75  
76  	/** フラッシュメッセージのセッションの属性名 */
77  	public static final String ATTR_FLASH = "flash";
78  
79  	/** セッショントークンの <code>Map</code> のセッションの属性名 */
80  	public static final String ATTR_TOKEN = PREFIX + "token";
81  
82  }