01: package com.sun.xml.ws.resources;
02:
03: import com.sun.xml.ws.util.localization.Localizable;
04: import com.sun.xml.ws.util.localization.LocalizableMessageFactory;
05: import com.sun.xml.ws.util.localization.Localizer;
06:
07: /**
08: * Defines string formatting method for each constant in the resource file
09: *
10: */
11: public final class SenderMessages {
12:
13: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
14: "com.sun.xml.ws.resources.sender");
15: private final static Localizer localizer = new Localizer();
16:
17: public static Localizable localizableSENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(
18: Object arg0) {
19: return messageFactory.getMessage(
20: "sender.request.illegalValueForContentNegotiation",
21: arg0);
22: }
23:
24: /**
25: * illegal value for content negotiation property "{0}"
26: *
27: */
28: public static String SENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(
29: Object arg0) {
30: return localizer
31: .localize(localizableSENDER_REQUEST_ILLEGAL_VALUE_FOR_CONTENT_NEGOTIATION(arg0));
32: }
33:
34: public static Localizable localizableSENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL() {
35: return messageFactory
36: .getMessage("sender.response.cannotDecodeFaultDetail");
37: }
38:
39: /**
40: * fault detail cannot be decoded
41: *
42: */
43: public static String SENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL() {
44: return localizer
45: .localize(localizableSENDER_RESPONSE_CANNOT_DECODE_FAULT_DETAIL());
46: }
47:
48: public static Localizable localizableSENDER_NESTED_ERROR(Object arg0) {
49: return messageFactory.getMessage("sender.nestedError", arg0);
50: }
51:
52: /**
53: * sender error: {0}
54: *
55: */
56: public static String SENDER_NESTED_ERROR(Object arg0) {
57: return localizer.localize(localizableSENDER_NESTED_ERROR(arg0));
58: }
59:
60: public static Localizable localizableSENDER_REQUEST_MESSAGE_NOT_READY() {
61: return messageFactory
62: .getMessage("sender.request.messageNotReady");
63: }
64:
65: /**
66: * message not ready to be sent
67: *
68: */
69: public static String SENDER_REQUEST_MESSAGE_NOT_READY() {
70: return localizer
71: .localize(localizableSENDER_REQUEST_MESSAGE_NOT_READY());
72: }
73:
74: }
|