1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
package org.apache.tapestry.portlet; |
16 |
|
|
17 |
|
import org.apache.hivemind.impl.MessageFormatter; |
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
final class PortletMessages |
24 |
|
{ |
25 |
|
|
26 |
1 |
private static final MessageFormatter _formatter = new MessageFormatter( |
27 |
1 |
PortletMessages.class); |
28 |
|
|
29 |
|
|
30 |
|
private PortletMessages() |
31 |
0 |
{ |
32 |
0 |
} |
33 |
|
|
34 |
|
static String unsupportedMethod(String methodName) |
35 |
|
{ |
36 |
11 |
return _formatter.format("unsupported-method", methodName); |
37 |
|
} |
38 |
|
|
39 |
|
static String errorGettingResource(String path, Throwable cause) |
40 |
|
{ |
41 |
1 |
return _formatter.format("error-getting-resource", path, cause); |
42 |
|
} |
43 |
|
|
44 |
|
static String errorProcessingAction(Throwable cause) |
45 |
|
{ |
46 |
0 |
return _formatter.format("error-processing-action", cause); |
47 |
|
} |
48 |
|
|
49 |
|
static String errorProcessingRender(Throwable cause) |
50 |
|
{ |
51 |
0 |
return _formatter.format("error-processing-render", cause); |
52 |
|
} |
53 |
|
|
54 |
|
static String errorReportingException(Throwable cause) |
55 |
|
{ |
56 |
0 |
return _formatter.format("error-reporting-exception", cause); |
57 |
|
} |
58 |
|
|
59 |
|
static String staleSession() |
60 |
|
{ |
61 |
0 |
return _formatter.getMessage("stale-session"); |
62 |
|
} |
63 |
|
} |