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 |
2
| static String streamOpenError(ContentType contentType, Throwable cause)
|
29 |
| { |
30 |
2
| return _formatter.format("stream-open-error", contentType, cause);
|
31 |
| } |
32 |
| |
33 |
2
| static String errorGettingResource(String path, Throwable ex)
|
34 |
| { |
35 |
2
| return _formatter.format("error-getting-resource", path, ex);
|
36 |
| } |
37 |
| |
38 |
2
| static String unableToFindDispatcher(String url)
|
39 |
| { |
40 |
2
| return _formatter.format("unable-to-find-dispatcher", url);
|
41 |
| } |
42 |
| |
43 |
4
| static String unableToForward(String url, Throwable cause)
|
44 |
| { |
45 |
4
| return _formatter.format("unable-to-forward", url, cause);
|
46 |
| } |
47 |
| |
48 |
2
| static String unableToRedirect(String url, Throwable cause)
|
49 |
| { |
50 |
2
| return _formatter.format("unable-to-redirect", url, cause);
|
51 |
| } |
52 |
| |
53 |
2
| static String writerOpenError(ContentType contentType, Throwable cause)
|
54 |
| { |
55 |
2
| 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 |
2
| static String contentTypeUnchanged(ContentType existing, ContentType requested)
|
64 |
| { |
65 |
2
| return _formatter.format("content-type-unchanged", existing, requested);
|
66 |
| } |
67 |
| } |