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 HttpserverMessages {
12:
13: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory(
14: "com.sun.xml.ws.resources.httpserver");
15: private final static Localizer localizer = new Localizer();
16:
17: public static Localizable localizableUNEXPECTED_HTTP_METHOD(
18: Object arg0) {
19: return messageFactory
20: .getMessage("unexpected.http.method", arg0);
21: }
22:
23: /**
24: * Cannot handle HTTP method: {0}
25: *
26: */
27: public static String UNEXPECTED_HTTP_METHOD(Object arg0) {
28: return localizer
29: .localize(localizableUNEXPECTED_HTTP_METHOD(arg0));
30: }
31:
32: }
|