|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| package org.apache.tapestry.web; |
|
16 |
| |
|
17 |
| import org.apache.hivemind.impl.MessageFormatter; |
|
18 |
| import org.apache.tapestry.util.ContentType; |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| class WebMessages |
|
25 |
| { |
|
26 |
| private final static MessageFormatter _formatter = new MessageFormatter(WebMessages.class); |
|
27 |
| |
|
28 |
3
| static String streamOpenError(ContentType contentType, Throwable cause)
|
|
29 |
| { |
|
30 |
3
| return _formatter.format("stream-open-error", contentType, cause);
|
|
31 |
| } |
|
32 |
| |
|
33 |
3
| static String errorGettingResource(String path, Throwable ex)
|
|
34 |
| { |
|
35 |
3
| return _formatter.format("error-getting-resource", path, ex);
|
|
36 |
| } |
|
37 |
| |
|
38 |
3
| static String unableToFindDispatcher(String url)
|
|
39 |
| { |
|
40 |
3
| return _formatter.format("unable-to-find-dispatcher", url);
|
|
41 |
| } |
|
42 |
| |
|
43 |
6
| static String unableToForward(String url, Throwable cause)
|
|
44 |
| { |
|
45 |
6
| return _formatter.format("unable-to-forward", url, cause);
|
|
46 |
| } |
|
47 |
| |
|
48 |
3
| static String unableToRedirect(String url, Throwable cause)
|
|
49 |
| { |
|
50 |
3
| return _formatter.format("unable-to-redirect", url, cause);
|
|
51 |
| } |
|
52 |
| |
|
53 |
3
| static String writerOpenError(ContentType contentType, Throwable cause)
|
|
54 |
| { |
|
55 |
3
| return _formatter.format("writer-open-error", contentType, cause);
|
|
56 |
| } |
|
57 |
| |
|
58 |
0
| static String resetFailed(Throwable cause)
|
|
59 |
| { |
|
60 |
0
| return _formatter.format("reset-failed", cause);
|
|
61 |
| } |
|
62 |
| |
|
63 |
3
| static String contentTypeUnchanged(ContentType existing, ContentType requested)
|
|
64 |
| { |
|
65 |
3
| return _formatter.format("content-type-unchanged", existing, requested);
|
|
66 |
| } |
|
67 |
| } |