1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.transport.file.i18n; |
12 | |
|
13 | |
import org.mule.api.endpoint.EndpointURI; |
14 | |
import org.mule.config.i18n.Message; |
15 | |
import org.mule.config.i18n.MessageFactory; |
16 | |
|
17 | 0 | public class FileMessages extends MessageFactory |
18 | |
{ |
19 | 2 | private static final String BUNDLE_PATH = getBundlePath("file"); |
20 | |
|
21 | |
public static Message errorWhileListingFiles() |
22 | |
{ |
23 | 0 | return createMessage(BUNDLE_PATH, 1); |
24 | |
} |
25 | |
|
26 | |
public static Message exceptionWhileProcessing(String name, String string) |
27 | |
{ |
28 | 0 | return createMessage(BUNDLE_PATH, 2, name, string); |
29 | |
} |
30 | |
|
31 | |
public static Message failedToDeleteFile(String path) |
32 | |
{ |
33 | 14 | return createMessage(BUNDLE_PATH, 3, path); |
34 | |
} |
35 | |
|
36 | |
public static Message failedToMoveFile(String from, String to) |
37 | |
{ |
38 | 0 | return createMessage(BUNDLE_PATH, 4, from, to); |
39 | |
} |
40 | |
|
41 | |
public static Message moveToDirectoryNotWritable() |
42 | |
{ |
43 | 0 | return createMessage(BUNDLE_PATH, 5); |
44 | |
} |
45 | |
|
46 | |
public static Message invalidFileFilter(EndpointURI endpointURI) |
47 | |
{ |
48 | 0 | return createMessage(BUNDLE_PATH, 6, endpointURI); |
49 | |
} |
50 | |
|
51 | |
public static Message fileDoesNotExist(String string) |
52 | |
{ |
53 | 0 | return createMessage(BUNDLE_PATH, 7, string); |
54 | |
} |
55 | |
} |
56 | |
|
57 | |
|