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 |
|
final class AssetMessages |
27 |
|
{ |
28 |
2 |
private static final MessageFormatter _formatter = new MessageFormatter(AssetMessages.class); |
29 |
|
|
30 |
|
|
31 |
0 |
private AssetMessages() { } |
32 |
|
|
33 |
|
static String missingAsset(String path, Resource resource) |
34 |
|
{ |
35 |
2 |
return _formatter.format("missing-asset", path, resource); |
36 |
|
} |
37 |
|
|
38 |
|
static String noSuchResource(String resourcePath) |
39 |
|
{ |
40 |
1 |
return _formatter.format("no-such-resource", resourcePath); |
41 |
|
} |
42 |
|
|
43 |
|
static String unableToReadResource(String resourcePath, IOException cause) |
44 |
|
{ |
45 |
0 |
return _formatter.format("unable-to-read-resource", resourcePath, cause); |
46 |
|
} |
47 |
|
|
48 |
|
static String md5Mismatch(String path) |
49 |
|
{ |
50 |
0 |
return _formatter.format("md5-mismatch", path); |
51 |
|
} |
52 |
|
|
53 |
|
static String exceptionReportTitle(String path) |
54 |
|
{ |
55 |
0 |
return _formatter.format("exception-report-title", path); |
56 |
|
} |
57 |
|
|
58 |
|
static String missingClasspathResource(String path) |
59 |
|
{ |
60 |
1 |
return _formatter.format("missing-classpath-resource", path); |
61 |
|
} |
62 |
|
|
63 |
|
static String missingContextResource(String path) |
64 |
|
{ |
65 |
1 |
return _formatter.format("missing-context-resource", path); |
66 |
|
} |
67 |
|
} |