1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.tapestry.asset; |
16 |
| |
17 |
| import java.io.IOException; |
18 |
| |
19 |
| import org.apache.hivemind.Resource; |
20 |
| import org.apache.hivemind.impl.MessageFormatter; |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| class AssetMessages |
27 |
| { |
28 |
| private final static MessageFormatter _formatter = new MessageFormatter(AssetMessages.class); |
29 |
| |
30 |
0
| static String missingAsset(String path, Resource resource)
|
31 |
| { |
32 |
0
| return _formatter.format("missing-asset", path, resource);
|
33 |
| } |
34 |
| |
35 |
1
| static String noSuchResource(String resourcePath)
|
36 |
| { |
37 |
1
| return _formatter.format("no-such-resource", resourcePath);
|
38 |
| } |
39 |
| |
40 |
0
| static String unableToReadResource(String resourcePath, IOException cause)
|
41 |
| { |
42 |
0
| return _formatter.format("unable-to-read-resource", resourcePath, cause);
|
43 |
| } |
44 |
| |
45 |
0
| static String md5Mismatch(String path)
|
46 |
| { |
47 |
0
| return _formatter.format("md5-mismatch", path);
|
48 |
| } |
49 |
| |
50 |
0
| static String exceptionReportTitle(String path)
|
51 |
| { |
52 |
0
| return _formatter.format("exception-report-title", path);
|
53 |
| } |
54 |
| } |