01: /*
02: * $Id: CxfMessages.java 11405 2008-03-18 00:13:00Z dirk.olmes $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.transport.cxf.i18n;
12:
13: import org.mule.config.i18n.Message;
14: import org.mule.config.i18n.MessageFactory;
15:
16: public class CxfMessages extends MessageFactory {
17: private static final String BUNDLE_PATH = getBundlePath("cxf");
18:
19: public static Message serviceIsNull(String serviceName) {
20: return createMessage(BUNDLE_PATH, 8, serviceName);
21: }
22:
23: public static Message annotationsRequireJava5() {
24: return createMessage(BUNDLE_PATH, 9);
25: }
26:
27: public static Message couldNotInitAnnotationProcessor(Object object) {
28: return createMessage(BUNDLE_PATH, 10, object);
29: }
30:
31: public static Message unableToInitBindingProvider(
32: String bindingProvider) {
33: return createMessage(BUNDLE_PATH, 11, bindingProvider);
34: }
35:
36: public static Message unableToLoadServiceClass(String classname) {
37: return createMessage(BUNDLE_PATH, 12, classname);
38: }
39:
40: public static Message unableToConstructAdapterForNullMessage() {
41: return createMessage(BUNDLE_PATH, 13);
42: }
43:
44: public static Message inappropriateMessageTypeForAttachments(
45: String className) {
46: return createMessage(BUNDLE_PATH, 14, className);
47: }
48:
49: public static Message bothServiceClassAndWsdlUrlAreRequired() {
50: return createMessage(BUNDLE_PATH, 15);
51: }
52:
53: public static Message incorrectlyFormattedEndpointUri(String uri) {
54: return createMessage(BUNDLE_PATH, 16, uri);
55: }
56:
57: public static Message invalidFrontend(String frontend) {
58: return createMessage(BUNDLE_PATH, 17, frontend);
59: }
60:
61: public static Message portNotFound(String port) {
62: return createMessage(BUNDLE_PATH, 18, port);
63: }
64:
65: public static Message mustSpecifyPort() {
66: return createMessage(BUNDLE_PATH, 19);
67: }
68:
69: public static Message wsdlNotFound(String loc) {
70: return createMessage(BUNDLE_PATH, 20, loc);
71: }
72:
73: public static Message noOperationWasFoundOrSpecified() {
74: return createMessage(BUNDLE_PATH, 21);
75: }
76:
77: public static Message javaComponentRequiredForInboundEndpoint() {
78: return createMessage(BUNDLE_PATH, 22);
79: }
80: }
|