(empty log message)
@@ -4,11 +4,11 @@ | ||
4 | 4 | import org.apache.struts.config.ActionConfig; |
5 | 5 | import org.apache.struts.config.impl.ModuleConfigImpl; |
6 | 6 | import org.phosphoresce.webcore.config.Config; |
7 | -import org.phosphoresce.webcore.exception.WebcoreConfigurationException; | |
7 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
8 | 8 | import org.phosphoresce.webcore.struts.util.StrutsUtil; |
9 | 9 | |
10 | 10 | /** |
11 | - * StrutsModuleConfig拡張クラス<br> | |
11 | + * モジュールコンフィグ拡張クラス<br> | |
12 | 12 | * <br> |
13 | 13 | * 当クラスは標準のModuleConfigを拡張したクラスでActionの生成をstruts-config.xmlからの生成ではなく、 |
14 | 14 | * リクエストされたパスから動的に生成するように拡張されたクラスです。<br> |
@@ -68,13 +68,13 @@ | ||
68 | 68 | |
69 | 69 | return config; |
70 | 70 | } catch (Throwable e) { |
71 | - throw new WebcoreConfigurationException("FSTR00001", new Object[] { "ActionConfig" }, e); | |
71 | + throw new StrutsProcessInternalException("FSTR00006", e); | |
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Struts環境設定モジュールの凍結処理を行います。<br> |
77 | - * ディフォルトStruts動作をオーバーライドさせて凍結処理は無視させます。<br> | |
77 | + * 動的定義変更を実現するためにディフォルトStruts動作をオーバーライドさせて凍結処理は無視させます。<br> | |
78 | 78 | * @see org.apache.struts.config.impl.ModuleConfigImpl#freeze() |
79 | 79 | */ |
80 | 80 | @Override |
@@ -4,7 +4,7 @@ | ||
4 | 4 | import org.apache.struts.config.ModuleConfigFactory; |
5 | 5 | |
6 | 6 | /** |
7 | - * StrutsModuleConfigFactory拡張クラス<br> | |
7 | + * モジュールコンフィグファクトリ拡張クラス<br> | |
8 | 8 | * <br> |
9 | 9 | * 当クラスは標準のModuleConfigの代わりの拡張されたModuleConfigオブジェクトを提供します。<br> |
10 | 10 | * |
@@ -1,5 +1,7 @@ | ||
1 | 1 | package org.phosphoresce.webcore.struts; |
2 | 2 | |
3 | +import org.phosphoresce.jod.JODSOfficeProcessManager; | |
4 | +import org.phosphoresce.webcore.exception.WebcoreConfigurationException; | |
3 | 5 | import org.phosphoresce.webcore.logger.CodeConvertLogger; |
4 | 6 | import org.slf4j.LoggerFactory; |
5 | 7 |
@@ -30,5 +32,23 @@ | ||
30 | 32 | * 当初期化処理はアプリケーション共通初期化処理が完了されていることが前提となります。<br> |
31 | 33 | */ |
32 | 34 | public synchronized static void configure() { |
35 | + try { | |
36 | + log.output("FSTR00001"); | |
37 | + | |
38 | + // Strutsアドオンモジュール個別の初期化処理はなし | |
39 | + | |
40 | + log.output("FSTR00002"); | |
41 | + } catch (Throwable e) { | |
42 | + throw new WebcoreConfigurationException("FSTR00006", e); | |
43 | + } | |
33 | 44 | } |
45 | + | |
46 | + /** | |
47 | + * Strutsアドオンの破棄処理を実行します。<br> | |
48 | + * @throws Throwable 終了処理中に予期せぬエラーが発生した場合にスローされます | |
49 | + */ | |
50 | + public synchronized static void destroy() throws Throwable { | |
51 | + JODSOfficeProcessManager.destroy(); | |
52 | + log.output("FSTR00003"); | |
53 | + } | |
34 | 54 | } |
@@ -14,7 +14,7 @@ | ||
14 | 14 | import org.phosphoresce.commons.util.StringUtil; |
15 | 15 | import org.phosphoresce.webcore.config.Config; |
16 | 16 | import org.phosphoresce.webcore.struts.annotation.CacheField; |
17 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
17 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
18 | 18 | import org.phosphoresce.webcore.struts.util.StrutsUtil; |
19 | 19 | |
20 | 20 | /** |
@@ -176,10 +176,10 @@ | ||
176 | 176 | } |
177 | 177 | return this; |
178 | 178 | } |
179 | - } catch (StrutsServletProcessException e) { | |
179 | + } catch (StrutsProcessInternalException e) { | |
180 | 180 | throw e; |
181 | 181 | } catch (Throwable e) { |
182 | - throw new StrutsServletProcessException("FSTR00033", e); | |
182 | + throw new StrutsProcessInternalException("FSTR00033", e); | |
183 | 183 | } |
184 | 184 | } |
185 | 185 |
@@ -3,7 +3,7 @@ | ||
3 | 3 | import java.io.OutputStream; |
4 | 4 | import java.io.Serializable; |
5 | 5 | |
6 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
6 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
7 | 7 | |
8 | 8 | /** |
9 | 9 | * ロジックサーブレットコンテナクラス<br> |
@@ -36,7 +36,7 @@ | ||
36 | 36 | @Deprecated |
37 | 37 | @Override |
38 | 38 | public void disposeSession() { |
39 | - throw new StrutsServletProcessException("FSTR00019"); | |
39 | + throw new StrutsProcessInternalException("FSTR00019"); | |
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -49,7 +49,7 @@ | ||
49 | 49 | @Deprecated |
50 | 50 | @Override |
51 | 51 | public OutputStream getResponseStream(String mimeType) { |
52 | - throw new StrutsServletProcessException("FSTR00019"); | |
52 | + throw new StrutsProcessInternalException("FSTR00019"); | |
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -62,7 +62,7 @@ | ||
62 | 62 | @Deprecated |
63 | 63 | @Override |
64 | 64 | public OutputStream getDownloadStream(String filename) { |
65 | - throw new StrutsServletProcessException("FSTR00019"); | |
65 | + throw new StrutsProcessInternalException("FSTR00019"); | |
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -74,7 +74,7 @@ | ||
74 | 74 | @Deprecated |
75 | 75 | @Override |
76 | 76 | public OutputStream getJSONStream() { |
77 | - throw new StrutsServletProcessException("FSTR00019"); | |
77 | + throw new StrutsProcessInternalException("FSTR00019"); | |
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -86,7 +86,7 @@ | ||
86 | 86 | @Deprecated |
87 | 87 | @Override |
88 | 88 | public void writeJSON(Object bean) { |
89 | - throw new StrutsServletProcessException("FSTR00019"); | |
89 | + throw new StrutsProcessInternalException("FSTR00019"); | |
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -100,7 +100,7 @@ | ||
100 | 100 | @Deprecated |
101 | 101 | @Override |
102 | 102 | public void setCookie(String name, String value, int expiry) { |
103 | - throw new StrutsServletProcessException("FSTR00019"); | |
103 | + throw new StrutsProcessInternalException("FSTR00019"); | |
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -113,7 +113,7 @@ | ||
113 | 113 | @Deprecated |
114 | 114 | @Override |
115 | 115 | public void setCookie(String name, String value) { |
116 | - throw new StrutsServletProcessException("FSTR00019"); | |
116 | + throw new StrutsProcessInternalException("FSTR00019"); | |
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -125,6 +125,6 @@ | ||
125 | 125 | @Deprecated |
126 | 126 | @Override |
127 | 127 | public void removeCookie(String name) { |
128 | - throw new StrutsServletProcessException("FSTR00019"); | |
128 | + throw new StrutsProcessInternalException("FSTR00019"); | |
129 | 129 | } |
130 | 130 | } |
@@ -8,7 +8,7 @@ | ||
8 | 8 | import org.phosphoresce.commons.util.DateUtil; |
9 | 9 | import org.phosphoresce.webcore.config.Config; |
10 | 10 | import org.phosphoresce.webcore.logger.CodeConvertLogger; |
11 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
11 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
12 | 12 | import org.slf4j.LoggerFactory; |
13 | 13 | |
14 | 14 | /** |
@@ -200,7 +200,7 @@ | ||
200 | 200 | try { |
201 | 201 | return screenDataClass.newInstance(); |
202 | 202 | } catch (Throwable e) { |
203 | - throw new StrutsServletProcessException("FSTR00007", new Object[] { screenDataClass }); | |
203 | + throw new StrutsProcessInternalException("FSTR00007", new Object[] { screenDataClass }); | |
204 | 204 | } |
205 | 205 | } |
206 | 206 |
@@ -5,7 +5,7 @@ | ||
5 | 5 | import java.util.Date; |
6 | 6 | |
7 | 7 | import org.phosphoresce.webcore.logger.CodeConvertLogger; |
8 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
8 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
9 | 9 | import org.phosphoresce.webcore.struts.util.StrutsUtil; |
10 | 10 | import org.slf4j.LoggerFactory; |
11 | 11 |
@@ -71,16 +71,16 @@ | ||
71 | 71 | protected <G extends AbstractLogic<L>> G createLogic(Class<G> clazz) { |
72 | 72 | try { |
73 | 73 | if (StrutsUtil.getStrutsLogicAnnotation((Class<AbstractLogic<L>>) clazz) == null) { |
74 | - throw new StrutsServletProcessException("FSTR00020", new Object[] { (clazz == null ? "null" : clazz.getSimpleName()) }); | |
74 | + throw new StrutsProcessInternalException("FSTR00020", new Object[] { (clazz == null ? "null" : clazz.getSimpleName()) }); | |
75 | 75 | } |
76 | 76 | Constructor<G> constructor = clazz.getConstructor(ServletContainer.class); |
77 | 77 | G g = constructor.newInstance(servlet); |
78 | 78 | servlet.addLogic(g); |
79 | 79 | return g; |
80 | - } catch (StrutsServletProcessException e) { | |
80 | + } catch (StrutsProcessInternalException e) { | |
81 | 81 | throw e; |
82 | 82 | } catch (Throwable e) { |
83 | - throw new StrutsServletProcessException("FSTR00021", e); | |
83 | + throw new StrutsProcessInternalException("FSTR00021", e); | |
84 | 84 | } |
85 | 85 | } |
86 | 86 |
@@ -46,7 +46,7 @@ | ||
46 | 46 | import org.phosphoresce.webcore.struts.exception.StrutsNoLoggedinException; |
47 | 47 | import org.phosphoresce.webcore.struts.exception.StrutsNoSuchActionClassException; |
48 | 48 | import org.phosphoresce.webcore.struts.exception.StrutsNoSuchActionMethodException; |
49 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
49 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
50 | 50 | import org.phosphoresce.webcore.struts.exception.StrutsSessionTimeoutException; |
51 | 51 | import org.phosphoresce.webcore.struts.util.StrutsUtil; |
52 | 52 | import org.slf4j.LoggerFactory; |
@@ -582,7 +582,7 @@ | ||
582 | 582 | } |
583 | 583 | } |
584 | 584 | } catch (Throwable e) { |
585 | - throw new StrutsServletProcessException("FSTR00047", e); | |
585 | + throw new StrutsProcessInternalException("FSTR00047", e); | |
586 | 586 | } |
587 | 587 | } |
588 | 588 |
@@ -629,12 +629,12 @@ | ||
629 | 629 | } catch (InvocationTargetException e) { |
630 | 630 | // バリデーションメソッド実行時のエラーはルート要因をスロー |
631 | 631 | if (e.getCause() != null) { |
632 | - throw new StrutsServletProcessException("FSTR00049", e.getCause()); | |
632 | + throw new StrutsProcessInternalException("FSTR00049", e.getCause()); | |
633 | 633 | } else { |
634 | - throw new StrutsServletProcessException("FSTR00049", e); | |
634 | + throw new StrutsProcessInternalException("FSTR00049", e); | |
635 | 635 | } |
636 | 636 | } catch (Throwable e) { |
637 | - throw new StrutsServletProcessException("FSTR00049", e); | |
637 | + throw new StrutsProcessInternalException("FSTR00049", e); | |
638 | 638 | } |
639 | 639 | } |
640 | 640 |
@@ -774,10 +774,10 @@ | ||
774 | 774 | if (e.getCause() instanceof StrutsModuleCriticalException) { |
775 | 775 | throw (StrutsModuleCriticalException) e.getCause(); |
776 | 776 | } else { |
777 | - throw new StrutsServletProcessException("FSTR00052", e.getCause()); | |
777 | + throw new StrutsProcessInternalException("FSTR00052", e.getCause()); | |
778 | 778 | } |
779 | 779 | } catch (Throwable e) { |
780 | - throw new StrutsServletProcessException("FSTR00052", e.getCause()); | |
780 | + throw new StrutsProcessInternalException("FSTR00052", e.getCause()); | |
781 | 781 | } |
782 | 782 | } |
783 | 783 |
@@ -8,7 +8,7 @@ | ||
8 | 8 | |
9 | 9 | import org.phosphoresce.webcore.TemporaryResource; |
10 | 10 | import org.phosphoresce.webcore.logger.CodeConvertLogger; |
11 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
11 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
12 | 12 | import org.slf4j.LoggerFactory; |
13 | 13 | |
14 | 14 | /** |
@@ -53,7 +53,7 @@ | ||
53 | 53 | return stream; |
54 | 54 | } |
55 | 55 | } catch (Throwable e) { |
56 | - throw new StrutsServletProcessException("FSTR00022", new Object[] { path }, e); | |
56 | + throw new StrutsProcessInternalException("FSTR00022", new Object[] { path }, e); | |
57 | 57 | } |
58 | 58 | } |
59 | 59 |
@@ -70,7 +70,7 @@ | ||
70 | 70 | streams.clear(); |
71 | 71 | } |
72 | 72 | } catch (Throwable e) { |
73 | - throw new StrutsServletProcessException("FSTR00023", e); | |
73 | + throw new StrutsProcessInternalException("FSTR00023", e); | |
74 | 74 | } |
75 | 75 | } |
76 | 76 | } |
@@ -13,15 +13,13 @@ | ||
13 | 13 | import org.apache.struts.action.RequestProcessor; |
14 | 14 | import org.apache.struts.config.FormBeanConfig; |
15 | 15 | import org.apache.struts.config.ModuleConfig; |
16 | -import org.phosphoresce.webcore.config.StringResource; | |
17 | 16 | import org.phosphoresce.webcore.logger.CodeConvertLogger; |
18 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
17 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
19 | 18 | import org.phosphoresce.webcore.struts.util.StrutsUtil; |
20 | -import org.slf4j.Logger; | |
21 | 19 | import org.slf4j.LoggerFactory; |
22 | 20 | |
23 | 21 | /** |
24 | - * Strutsリクエストプロセッサ拡張クラス<br> | |
22 | + * リクエストプロセッサ拡張クラス<br> | |
25 | 23 | * <br> |
26 | 24 | * Struts標準のリクエストプロセッサクラスを拡張したクラスとなります。<br> |
27 | 25 | * 当クラスはstruts-config.xmlに未定義のアクションフォームマッピングを動的に生成する機能を提供します。<br> |
@@ -45,7 +43,7 @@ | ||
45 | 43 | @Override |
46 | 44 | public void init(ActionServlet servlet, ModuleConfig moduleConfig) throws ServletException { |
47 | 45 | super.init(servlet, moduleConfig); |
48 | - log.output("FSTR00062"); | |
46 | + log.output("FSTR00004"); | |
49 | 47 | } |
50 | 48 | |
51 | 49 | /** |
@@ -66,14 +64,12 @@ | ||
66 | 64 | formConfig.setName(mapping.getName()); |
67 | 65 | formConfig.setType(formClass); |
68 | 66 | moduleConfig.addFormBeanConfig(formConfig); |
69 | - log.output("FSTR00063", formConfig.getName(), formConfig.getType()); | |
67 | + log.output("FSTR00005", formConfig.getName(), formConfig.getType()); | |
70 | 68 | } |
71 | - | |
72 | 69 | ActionForm form = super.processActionForm(request, response, mapping); |
73 | - | |
74 | 70 | return form; |
75 | 71 | } catch (Throwable e) { |
76 | - throw new StrutsServletProcessException("FSTR00062", e); | |
72 | + throw new StrutsProcessInternalException("FSTR00006", e); | |
77 | 73 | } |
78 | 74 | } |
79 | 75 |
@@ -85,25 +81,4 @@ | ||
85 | 81 | protected ActionForward processException(HttpServletRequest request, HttpServletResponse response, Exception exception, ActionForm form, ActionMapping mapping) throws IOException, ServletException { |
86 | 82 | throw new ServletException(exception); |
87 | 83 | } |
88 | - | |
89 | - /** | |
90 | - * フォームへのパラメータ反映処理を実行します。 | |
91 | - * @see org.apache.struts.action.RequestProcessor#processPopulate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping) | |
92 | - */ | |
93 | - @Override | |
94 | - protected void processPopulate(HttpServletRequest request, HttpServletResponse response, ActionForm form, ActionMapping mapping) throws ServletException { | |
95 | - super.processPopulate(request, response, form, mapping); | |
96 | - // if (form == null) { | |
97 | - // return; | |
98 | - // } | |
99 | - // form.setServlet(servlet); | |
100 | - // form.reset(mapping, request); | |
101 | - // if (mapping.getMultipartClass() != null) { | |
102 | - // request.setAttribute("org.apache.struts.action.mapping.multipartclass", mapping.getMultipartClass()); | |
103 | - // } | |
104 | - // RequestUtils.populate(form, mapping.getPrefix(), mapping.getSuffix(), request); | |
105 | - // if (request.getParameter("org.apache.struts.taglib.html.CANCEL") != null || request.getParameter("org.apache.struts.taglib.html.CANCEL.x") != null) { | |
106 | - // request.setAttribute("org.apache.struts.action.CANCEL", Boolean.TRUE); | |
107 | - // } | |
108 | - } | |
109 | 84 | } |
@@ -28,7 +28,7 @@ | ||
28 | 28 | import org.phosphoresce.webcore.logger.CodeConvertLogger; |
29 | 29 | import org.phosphoresce.webcore.servlet.ServletOutputStream; |
30 | 30 | import org.phosphoresce.webcore.struts.StrutsConstants; |
31 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
31 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
32 | 32 | import org.slf4j.LoggerFactory; |
33 | 33 | |
34 | 34 | /** |
@@ -280,7 +280,7 @@ | ||
280 | 280 | |
281 | 281 | log.output("FSTR00029", data); |
282 | 282 | } catch (Throwable e) { |
283 | - throw new StrutsServletProcessException("FSTR00030", e); | |
283 | + throw new StrutsProcessInternalException("FSTR00030", e); | |
284 | 284 | } |
285 | 285 | } |
286 | 286 |
@@ -319,7 +319,7 @@ | ||
319 | 319 | cookie.setMaxAge(expiry); |
320 | 320 | response.addCookie(cookie); |
321 | 321 | } catch (Throwable e) { |
322 | - throw new StrutsServletProcessException("FSTR00031", e); | |
322 | + throw new StrutsProcessInternalException("FSTR00031", e); | |
323 | 323 | } |
324 | 324 | } |
325 | 325 |
@@ -375,7 +375,7 @@ | ||
375 | 375 | try { |
376 | 376 | return URLDecoder.decode(cookie.getValue(), Config.getString("common.charset.default")); |
377 | 377 | } catch (Throwable e) { |
378 | - throw new StrutsServletProcessException("FSTR00032", e); | |
378 | + throw new StrutsProcessInternalException("FSTR00032", e); | |
379 | 379 | } |
380 | 380 | } |
381 | 381 |
@@ -28,7 +28,7 @@ | ||
28 | 28 | import org.phosphoresce.webcore.struts.annotation.StrutsActionForm; |
29 | 29 | import org.phosphoresce.webcore.struts.annotation.StrutsActionMethod; |
30 | 30 | import org.phosphoresce.webcore.struts.annotation.StrutsLogic; |
31 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
31 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Strutsモジュールユーティリティクラス<br> |
@@ -205,7 +205,7 @@ | ||
205 | 205 | } |
206 | 206 | String prefix = moduleConfig.getPrefix(); |
207 | 207 | if (!path.startsWith(prefix)) { |
208 | - throw new StrutsServletProcessException("FSTR00003", new Object[] { path }); | |
208 | + throw new StrutsProcessInternalException("FSTR00003", new Object[] { path }); | |
209 | 209 | } |
210 | 210 | path = path.substring(prefix.length()); |
211 | 211 | int slash = path.lastIndexOf("/"); |
@@ -502,7 +502,7 @@ | ||
502 | 502 | |
503 | 503 | StrutsAction strutsAction = getStrutsActionAnnotation(action); |
504 | 504 | if (strutsAction == null) { |
505 | - throw new StrutsServletProcessException("FSTR00004", new Object[] { action.getClass().getName() }); | |
505 | + throw new StrutsProcessInternalException("FSTR00004", new Object[] { action.getClass().getName() }); | |
506 | 506 | } |
507 | 507 | |
508 | 508 | Class<AbstractForm<?>> actionFormClass = getActionFormClass(action); |
@@ -510,11 +510,11 @@ | ||
510 | 510 | |
511 | 511 | StrutsActionMethod strutsActionMethod = method.getAnnotation(StrutsActionMethod.class); |
512 | 512 | if (strutsActionMethod == null) { |
513 | - throw new StrutsServletProcessException("FSTR00005", new Object[] { methodName }); | |
513 | + throw new StrutsProcessInternalException("FSTR00005", new Object[] { methodName }); | |
514 | 514 | } |
515 | 515 | return method; |
516 | 516 | } catch (Throwable e) { |
517 | - throw new StrutsServletProcessException("FSTR00006", e); | |
517 | + throw new StrutsProcessInternalException("FSTR00006", e); | |
518 | 518 | } |
519 | 519 | } |
520 | 520 |
@@ -594,7 +594,7 @@ | ||
594 | 594 | } |
595 | 595 | StrutsActionMethod strutsActionMethod = method.getAnnotation(StrutsActionMethod.class); |
596 | 596 | if (strutsActionMethod == null) { |
597 | - throw new StrutsServletProcessException("FSTR00005", new Object[] { method.getName() }); | |
597 | + throw new StrutsProcessInternalException("FSTR00005", new Object[] { method.getName() }); | |
598 | 598 | } |
599 | 599 | return strutsActionMethod; |
600 | 600 | } |
@@ -4,7 +4,7 @@ | ||
4 | 4 | import java.util.List; |
5 | 5 | |
6 | 6 | import org.phosphoresce.commons.util.ObjectUtil; |
7 | -import org.phosphoresce.webcore.struts.exception.StrutsServletProcessException; | |
7 | +import org.phosphoresce.webcore.struts.exception.StrutsProcessInternalException; | |
8 | 8 | |
9 | 9 | /** |
10 | 10 | * アクションフォーム/ビーンユーティリティクラス<br> |
@@ -45,7 +45,7 @@ | ||
45 | 45 | } |
46 | 46 | return list.get(index); |
47 | 47 | } catch (Throwable e) { |
48 | - throw new StrutsServletProcessException("FSTR00002", e); | |
48 | + throw new StrutsProcessInternalException("FSTR00002", e); | |
49 | 49 | } |
50 | 50 | } |
51 | 51 |
@@ -67,7 +67,7 @@ | ||
67 | 67 | } |
68 | 68 | list.set(index, value); |
69 | 69 | } catch (Throwable e) { |
70 | - throw new StrutsServletProcessException("FSTR00002", e); | |
70 | + throw new StrutsProcessInternalException("FSTR00002", e); | |
71 | 71 | } |
72 | 72 | } |
73 | 73 | } |
@@ -1,52 +0,0 @@ | ||
1 | -package org.phosphoresce.webcore.struts.exception; | |
2 | - | |
3 | -import org.phosphoresce.webcore.exception.WebcoreCriticalException; | |
4 | - | |
5 | -/** | |
6 | - * Strutsサーブレット処理関連例外クラス<br> | |
7 | - * | |
8 | - * @author Kitagawa<br> | |
9 | - * | |
10 | - *<!-- | |
11 | - * 更新日 更新者 更新内容 | |
12 | - * 2011/10/11 Kitagawa 新規作成 | |
13 | - *--> | |
14 | - */ | |
15 | -public class StrutsServletProcessException extends StrutsModuleCriticalException { | |
16 | - | |
17 | - /** | |
18 | - * コンストラクタ<br> | |
19 | - * @param code 例外メッセージコード | |
20 | - * @param cause 例外要因 | |
21 | - */ | |
22 | - public StrutsServletProcessException(String code, Throwable cause) { | |
23 | - super(code, cause); | |
24 | - } | |
25 | - | |
26 | - /** | |
27 | - * コンストラクタ<br> | |
28 | - * @param code 例外メッセージコード | |
29 | - * @param binds 例外メッセージバインドオブジェクト | |
30 | - * @param cause 例外要因 | |
31 | - */ | |
32 | - public StrutsServletProcessException(String code, Object[] binds, Throwable cause) { | |
33 | - super(code, binds, cause); | |
34 | - } | |
35 | - | |
36 | - /** | |
37 | - * コンストラクタ<br> | |
38 | - * @param code 例外メッセージ | |
39 | - */ | |
40 | - public StrutsServletProcessException(String code) { | |
41 | - super(code); | |
42 | - } | |
43 | - | |
44 | - /** | |
45 | - * コンストラクタ<br> | |
46 | - * @param code 例外メッセージ | |
47 | - * @param binds 例外メッセージバインドオブジェクト | |
48 | - */ | |
49 | - public StrutsServletProcessException(String code, Object[] binds) { | |
50 | - super(code, binds); | |
51 | - } | |
52 | -} |
@@ -0,0 +1,52 @@ | ||
1 | +package org.phosphoresce.webcore.struts.exception; | |
2 | + | |
3 | +import org.phosphoresce.webcore.exception.WebcoreCriticalException; | |
4 | + | |
5 | +/** | |
6 | + * Strutsサーブレット処理関連例外クラス<br> | |
7 | + * | |
8 | + * @author Kitagawa<br> | |
9 | + * | |
10 | + *<!-- | |
11 | + * 更新日 更新者 更新内容 | |
12 | + * 2011/10/11 Kitagawa 新規作成 | |
13 | + *--> | |
14 | + */ | |
15 | +public class StrutsProcessInternalException extends StrutsModuleCriticalException { | |
16 | + | |
17 | + /** | |
18 | + * コンストラクタ<br> | |
19 | + * @param code 例外メッセージコード | |
20 | + * @param cause 例外要因 | |
21 | + */ | |
22 | + public StrutsProcessInternalException(String code, Throwable cause) { | |
23 | + super(code, cause); | |
24 | + } | |
25 | + | |
26 | + /** | |
27 | + * コンストラクタ<br> | |
28 | + * @param code 例外メッセージコード | |
29 | + * @param binds 例外メッセージバインドオブジェクト | |
30 | + * @param cause 例外要因 | |
31 | + */ | |
32 | + public StrutsProcessInternalException(String code, Object[] binds, Throwable cause) { | |
33 | + super(code, binds, cause); | |
34 | + } | |
35 | + | |
36 | + /** | |
37 | + * コンストラクタ<br> | |
38 | + * @param code 例外メッセージ | |
39 | + */ | |
40 | + public StrutsProcessInternalException(String code) { | |
41 | + super(code); | |
42 | + } | |
43 | + | |
44 | + /** | |
45 | + * コンストラクタ<br> | |
46 | + * @param code 例外メッセージ | |
47 | + * @param binds 例外メッセージバインドオブジェクト | |
48 | + */ | |
49 | + public StrutsProcessInternalException(String code, Object[] binds) { | |
50 | + super(code, binds); | |
51 | + } | |
52 | +} |