001: package com.sun.xml.ws.resources;
002:
003: import com.sun.xml.ws.util.localization.Localizable;
004: import com.sun.xml.ws.util.localization.LocalizableMessageFactory;
005: import com.sun.xml.ws.util.localization.Localizer;
006:
007: /**
008: * Defines string formatting method for each constant in the resource file
009: *
010: */
011: public final class AddressingMessages {
012:
013: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
014: "com.sun.xml.ws.resources.addressing");
015: private final static Localizer localizer = new Localizer();
016:
017: public static Localizable localizableNON_ANONYMOUS_RESPONSE_ONEWAY() {
018: return messageFactory
019: .getMessage("nonAnonymous.response.oneway");
020: }
021:
022: /**
023: * Ignoring non-anonymous response for one-way message
024: *
025: */
026: public static String NON_ANONYMOUS_RESPONSE_ONEWAY() {
027: return localizer
028: .localize(localizableNON_ANONYMOUS_RESPONSE_ONEWAY());
029: }
030:
031: public static Localizable localizableNULL_WSA_HEADERS() {
032: return messageFactory.getMessage("null.wsa.headers");
033: }
034:
035: /**
036: * No WS-Addressing headers found processing the server inbound request
037: *
038: */
039: public static String NULL_WSA_HEADERS() {
040: return localizer.localize(localizableNULL_WSA_HEADERS());
041: }
042:
043: public static Localizable localizableUNKNOWN_WSA_HEADER() {
044: return messageFactory.getMessage("unknown.wsa.header");
045: }
046:
047: /**
048: * Unknown WS-Addressing header
049: *
050: */
051: public static String UNKNOWN_WSA_HEADER() {
052: return localizer.localize(localizableUNKNOWN_WSA_HEADER());
053: }
054:
055: public static Localizable localizableNULL_ACTION() {
056: return messageFactory.getMessage("null.action");
057: }
058:
059: /**
060: * Populating request Addressing headers and found null Action
061: *
062: */
063: public static String NULL_ACTION() {
064: return localizer.localize(localizableNULL_ACTION());
065: }
066:
067: public static Localizable localizableINVALID_WSAW_ANONYMOUS(
068: Object arg0) {
069: return messageFactory
070: .getMessage("invalid.wsaw.anonymous", arg0);
071: }
072:
073: /**
074: * Invalid value obtained from wsaw:Anonymous: "{0}"
075: *
076: */
077: public static String INVALID_WSAW_ANONYMOUS(Object arg0) {
078: return localizer
079: .localize(localizableINVALID_WSAW_ANONYMOUS(arg0));
080: }
081:
082: public static Localizable localizableNULL_SOAP_VERSION() {
083: return messageFactory.getMessage("null.soap.version");
084: }
085:
086: /**
087: * Unexpected null SOAP version
088: *
089: */
090: public static String NULL_SOAP_VERSION() {
091: return localizer.localize(localizableNULL_SOAP_VERSION());
092: }
093:
094: public static Localizable localizableWSDL_BOUND_OPERATION_NOT_FOUND(
095: Object arg0) {
096: return messageFactory.getMessage("wsdlBoundOperation.notFound",
097: arg0);
098: }
099:
100: /**
101: * Cannot find an operation in wsdl:binding for "{0}"
102: *
103: */
104: public static String WSDL_BOUND_OPERATION_NOT_FOUND(Object arg0) {
105: return localizer
106: .localize(localizableWSDL_BOUND_OPERATION_NOT_FOUND(arg0));
107: }
108:
109: public static Localizable localizableNON_ANONYMOUS_RESPONSE() {
110: return messageFactory.getMessage("nonAnonymous.response");
111: }
112:
113: /**
114: * Sending 202 and processing non-anonymous response
115: *
116: */
117: public static String NON_ANONYMOUS_RESPONSE() {
118: return localizer.localize(localizableNON_ANONYMOUS_RESPONSE());
119: }
120:
121: public static Localizable localizableVALIDATION_SERVER_NULL_ACTION() {
122: return messageFactory
123: .getMessage("validation.server.nullAction");
124: }
125:
126: /**
127: * Validating inbound Addressing headers on server and found null Action
128: *
129: */
130: public static String VALIDATION_SERVER_NULL_ACTION() {
131: return localizer
132: .localize(localizableVALIDATION_SERVER_NULL_ACTION());
133: }
134:
135: public static Localizable localizableFAULT_TO_CANNOT_PARSE() {
136: return messageFactory.getMessage("faultTo.cannot.parse");
137: }
138:
139: /**
140: * FaultTo header cannot be parsed
141: *
142: */
143: public static String FAULT_TO_CANNOT_PARSE() {
144: return localizer.localize(localizableFAULT_TO_CANNOT_PARSE());
145: }
146:
147: public static Localizable localizableVALIDATION_CLIENT_NULL_ACTION() {
148: return messageFactory
149: .getMessage("validation.client.nullAction");
150: }
151:
152: /**
153: * Validating inbound Addressing headers on client and found null Action
154: *
155: */
156: public static String VALIDATION_CLIENT_NULL_ACTION() {
157: return localizer
158: .localize(localizableVALIDATION_CLIENT_NULL_ACTION());
159: }
160:
161: public static Localizable localizableNULL_MESSAGE() {
162: return messageFactory.getMessage("null.message");
163: }
164:
165: /**
166: * Null message found when processing the server inbound request and WS-Addressing is required
167: *
168: */
169: public static String NULL_MESSAGE() {
170: return localizer.localize(localizableNULL_MESSAGE());
171: }
172:
173: public static Localizable localizableNON_ANONYMOUS_RESPONSE_NULL_HEADERS(
174: Object arg0) {
175: return messageFactory.getMessage(
176: "nonAnonymous.response.nullHeaders", arg0);
177: }
178:
179: /**
180: * No response headers found in non-anonymous response from "{0}"
181: *
182: */
183: public static String NON_ANONYMOUS_RESPONSE_NULL_HEADERS(Object arg0) {
184: return localizer
185: .localize(localizableNON_ANONYMOUS_RESPONSE_NULL_HEADERS(arg0));
186: }
187:
188: public static Localizable localizableNON_ANONYMOUS_RESPONSE_SENDING(
189: Object arg0) {
190: return messageFactory.getMessage(
191: "nonAnonymous.response.sending", arg0);
192: }
193:
194: /**
195: * Sending non-anonymous reply to "{0}"
196: *
197: */
198: public static String NON_ANONYMOUS_RESPONSE_SENDING(Object arg0) {
199: return localizer
200: .localize(localizableNON_ANONYMOUS_RESPONSE_SENDING(arg0));
201: }
202:
203: public static Localizable localizableREPLY_TO_CANNOT_PARSE() {
204: return messageFactory.getMessage("replyTo.cannot.parse");
205: }
206:
207: /**
208: * ReplyTo header cannot be parsed
209: *
210: */
211: public static String REPLY_TO_CANNOT_PARSE() {
212: return localizer.localize(localizableREPLY_TO_CANNOT_PARSE());
213: }
214:
215: public static Localizable localizableWSAW_ANONYMOUS_PROHIBITED() {
216: return messageFactory.getMessage("wsaw.anonymousProhibited");
217: }
218:
219: /**
220: * Operation has "prohibited" value for wsaw:anonymous in the WSDL, Addressing must be disabled and SOAP message need to be hand-crafted
221: *
222: */
223: public static String WSAW_ANONYMOUS_PROHIBITED() {
224: return localizer
225: .localize(localizableWSAW_ANONYMOUS_PROHIBITED());
226: }
227:
228: public static Localizable localizableNULL_WSDL_PORT() {
229: return messageFactory.getMessage("null.wsdlPort");
230: }
231:
232: /**
233: * Populating request Addressing headers and found null WSDLPort
234: *
235: */
236: public static String NULL_WSDL_PORT() {
237: return localizer.localize(localizableNULL_WSDL_PORT());
238: }
239:
240: public static Localizable localizableNULL_ADDRESSING_VERSION() {
241: return messageFactory.getMessage("null.addressing.version");
242: }
243:
244: /**
245: * Unexpected null Addressing version
246: *
247: */
248: public static String NULL_ADDRESSING_VERSION() {
249: return localizer.localize(localizableNULL_ADDRESSING_VERSION());
250: }
251:
252: public static Localizable localizableNULL_PACKET() {
253: return messageFactory.getMessage("null.packet");
254: }
255:
256: /**
257: * Populating request Addressing headers and found null Packet
258: *
259: */
260: public static String NULL_PACKET() {
261: return localizer.localize(localizableNULL_PACKET());
262: }
263:
264: public static Localizable localizableWRONG_ADDRESSING_VERSION(
265: Object arg0, Object arg1) {
266: return messageFactory.getMessage("wrong.addressing.version",
267: arg0, arg1);
268: }
269:
270: /**
271: * Expected "{0}" version of WS-Addressing but found "{1}"
272: *
273: */
274: public static String WRONG_ADDRESSING_VERSION(Object arg0,
275: Object arg1) {
276: return localizer.localize(localizableWRONG_ADDRESSING_VERSION(
277: arg0, arg1));
278: }
279:
280: public static Localizable localizableADDRESSING_NOT_ENABLED(
281: Object arg0) {
282: return messageFactory.getMessage("addressing.notEnabled", arg0);
283: }
284:
285: /**
286: * Addressing is not enabled, {0} should not be included in the pipeline"
287: *
288: */
289: public static String ADDRESSING_NOT_ENABLED(Object arg0) {
290: return localizer
291: .localize(localizableADDRESSING_NOT_ENABLED(arg0));
292: }
293:
294: public static Localizable localizableNON_ANONYMOUS_UNKNOWN_PROTOCOL(
295: Object arg0) {
296: return messageFactory.getMessage(
297: "nonAnonymous.unknown.protocol", arg0);
298: }
299:
300: /**
301: * Unknown protocol: "{0}"
302: *
303: */
304: public static String NON_ANONYMOUS_UNKNOWN_PROTOCOL(Object arg0) {
305: return localizer
306: .localize(localizableNON_ANONYMOUS_UNKNOWN_PROTOCOL(arg0));
307: }
308:
309: public static Localizable localizableNON_ANONYMOUS_RESPONSE_NULL_MESSAGE(
310: Object arg0) {
311: return messageFactory.getMessage(
312: "nonAnonymous.response.nullMessage", arg0);
313: }
314:
315: /**
316: * No message for non-anonymous response from "{0}"
317: *
318: */
319: public static String NON_ANONYMOUS_RESPONSE_NULL_MESSAGE(Object arg0) {
320: return localizer
321: .localize(localizableNON_ANONYMOUS_RESPONSE_NULL_MESSAGE(arg0));
322: }
323:
324: public static Localizable localizableNULL_HEADERS() {
325: return messageFactory.getMessage("null.headers");
326: }
327:
328: /**
329: * No headers found when processing the server inbound request and WS-Addressing is required
330: *
331: */
332: public static String NULL_HEADERS() {
333: return localizer.localize(localizableNULL_HEADERS());
334: }
335:
336: public static Localizable localizableNULL_BINDING() {
337: return messageFactory.getMessage("null.binding");
338: }
339:
340: /**
341: * Populating request Addressing headers and found null Binding
342: *
343: */
344: public static String NULL_BINDING() {
345: return localizer.localize(localizableNULL_BINDING());
346: }
347:
348: }
|