< prev index next >

jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ServerMessages.java

Print this page


   1 /*
   2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.xml.internal.ws.resources;
  27 



  28 import com.sun.istack.internal.localization.Localizable;
  29 import com.sun.istack.internal.localization.LocalizableMessageFactory;

  30 import com.sun.istack.internal.localization.Localizer;
  31 
  32 import java.util.Locale;
  33 import java.util.ResourceBundle;
  34 
  35 
  36 /**
  37  * Defines string formatting method for each constant in the resource file
  38  *
  39  */

  40 public final class ServerMessages {
  41     private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.server";
  42     private final static LocalizableMessageFactory messageFactory =
  43         new LocalizableMessageFactory(BUNDLE_NAME, ServerMessages::getResourceBundle);
  44     private final static Localizer localizer = new Localizer();
  45 
  46     private static ResourceBundle getResourceBundle(Locale locale) {
  47         return ResourceBundle.getBundle(BUNDLE_NAME, locale);
  48     }
  49 
  50     public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) {
  51         return messageFactory.getMessage("runtime.parser.wsdl.incorrectservice", arg0, arg1);
  52     }
  53 
  54     /**
  55      * could not get binding from WSDL! service: {0} not found in the WSDL {1}.
  56      * It could be because service name does not match WSDL''s wsdl:service name:
  57      *  1. service name is not there in deployment descriptor OR
  58      *  2. Either there is a typo in deployment descriptor''s service name OR
  59      *  3. The computed names from @WebService do not match wsdl:service name
  60      * OR
  61      *  1. There is an error while parsing the wsdl and Service with name {0} is not found in the WSDLModel.
  62      * Suggest doing the following:
  63      *  1. Add/Correct entries for service name in deployment descriptor OR
  64      *  2. Specify targetNamespace, serviceName in @WebService on the endpoint class
  65      *
  66      */
  67     public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) {
  68         return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(arg0, arg1));
  69     }
  70 
  71     public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() {
  72         return messageFactory.getMessage("runtime.parser.missing.attribute.no.line");
  73     }
  74 
  75     /**
  76      * missing attribute "{2}" in element "{1}" of runtime descriptor
  77      *
  78      */
  79     public static String RUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() {
  80         return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE());
  81     }
  82 
  83     public static Localizable localizableSTATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) {
  84         return messageFactory.getMessage("stateful.cookie.header.incorrect", arg0, arg1);
  85     }
  86 
  87     /**
  88      * Invalid/expired {0} header value: {1}
  89      *
  90      */
  91     public static String STATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) {
  92         return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_INCORRECT(arg0, arg1));
  93     }
  94 
  95     public static Localizable localizableNOT_IMPLEMENT_PROVIDER(Object arg0) {
  96         return messageFactory.getMessage("not.implement.provider", arg0);
  97     }
  98 
  99     /**
 100      * "{0}" doesn't implement Provider
 101      *
 102      */
 103     public static String NOT_IMPLEMENT_PROVIDER(Object arg0) {
 104         return localizer.localize(localizableNOT_IMPLEMENT_PROVIDER(arg0));
 105     }
 106 
 107     public static Localizable localizableSTATEFUL_REQURES_ADDRESSING(Object arg0) {
 108         return messageFactory.getMessage("stateful.requres.addressing", arg0);
 109     }
 110 
 111     /**
 112      * Stateful web service {0} requires the WS-Addressing support to be enabled. Perhaps you are missing @Addressing
 113      *
 114      */
 115     public static String STATEFUL_REQURES_ADDRESSING(Object arg0) {
 116         return localizer.localize(localizableSTATEFUL_REQURES_ADDRESSING(arg0));
 117     }
 118 
 119     public static Localizable localizableSOAPDECODER_ERR() {
 120         return messageFactory.getMessage("soapdecoder.err");
 121     }
 122 
 123     /**
 124      * Error in decoding SOAP Message
 125      *
 126      */
 127     public static String SOAPDECODER_ERR() {
 128         return localizer.localize(localizableSOAPDECODER_ERR());
 129     }
 130 
 131     public static Localizable localizableGENERATE_NON_STANDARD_WSDL() {
 132         return messageFactory.getMessage("generate.non.standard.wsdl");
 133     }
 134 
 135     /**
 136      * Generating non-standard WSDL for the specified binding
 137      *
 138      */
 139     public static String GENERATE_NON_STANDARD_WSDL() {
 140         return localizer.localize(localizableGENERATE_NON_STANDARD_WSDL());
 141     }
 142 
 143     public static Localizable localizableDISPATCH_CANNOT_FIND_METHOD(Object arg0) {
 144         return messageFactory.getMessage("dispatch.cannotFindMethod", arg0);
 145     }
 146 
 147     /**
 148      * Cannot find dispatch method for {0}
 149      *
 150      */
 151     public static String DISPATCH_CANNOT_FIND_METHOD(Object arg0) {
 152         return localizer.localize(localizableDISPATCH_CANNOT_FIND_METHOD(arg0));
 153     }
 154 
 155     public static Localizable localizableNO_CONTENT_TYPE() {
 156         return messageFactory.getMessage("no.contentType");
 157     }
 158 
 159     /**
 160      * Request doesn't have a Content-Type
 161      *
 162      */
 163     public static String NO_CONTENT_TYPE() {
 164         return localizer.localize(localizableNO_CONTENT_TYPE());
 165     }
 166 
 167     public static Localizable localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER() {
 168         return messageFactory.getMessage("runtime.parser.invalidVersionNumber");
 169     }
 170 
 171     /**
 172      * unsupported runtime descriptor version: {2}
 173      *
 174      */
 175     public static String RUNTIME_PARSER_INVALID_VERSION_NUMBER() {
 176         return localizer.localize(localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER());
 177     }
 178 
 179     public static Localizable localizablePROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) {
 180         return messageFactory.getMessage("provider.invalid.parameterType", arg0, arg1);
 181     }
 182 
 183     /**
 184      * "{0}" implements Provider but its type parameter {1} is incorrect







 185      *
 186      */
 187     public static String PROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) {
 188         return localizer.localize(localizablePROVIDER_INVALID_PARAMETER_TYPE(arg0, arg1));
 189     }
 190 
 191     public static Localizable localizableWRONG_NO_PARAMETERS(Object arg0) {
 192         return messageFactory.getMessage("wrong.no.parameters", arg0);
 193     }
 194 
 195     /**
 196      * Incorrect no of arguments for method "{0}"
 197      *
 198      */
 199     public static String WRONG_NO_PARAMETERS(Object arg0) {
 200         return localizer.localize(localizableWRONG_NO_PARAMETERS(arg0));
 201     }
 202 
 203     public static Localizable localizableANNOTATION_ONLY_ONCE(Object arg0) {
 204         return messageFactory.getMessage("annotation.only.once", arg0);
 205     }
 206 
 207     /**
 208      * Only one method should have the annotation "{0}"
 209      *
 210      */
 211     public static String ANNOTATION_ONLY_ONCE(Object arg0) {
 212         return localizer.localize(localizableANNOTATION_ONLY_ONCE(arg0));
 213     }
 214 
 215     public static Localizable localizableALREADY_HTTPS_SERVER(Object arg0) {
 216         return messageFactory.getMessage("already.https.server", arg0);
 217     }
 218 
 219     /**
 220      * There is already a HTTPS server at : {0}
 221      *
 222      */
 223     public static String ALREADY_HTTPS_SERVER(Object arg0) {
 224         return localizer.localize(localizableALREADY_HTTPS_SERVER(arg0));
 225     }
 226 
 227     public static Localizable localizableRUNTIME_PARSER_XML_READER(Object arg0) {
 228         return messageFactory.getMessage("runtime.parser.xmlReader", arg0);
 229     }
 230 
 231     /**
 232      * error parsing runtime descriptor: {0}

 233      *
 234      */
 235     public static String RUNTIME_PARSER_XML_READER(Object arg0) {
 236         return localizer.localize(localizableRUNTIME_PARSER_XML_READER(arg0));
 237     }
 238 
 239     public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) {
 240         return messageFactory.getMessage("runtime.parser.wsdl.incorrectserviceport", arg0, arg1, arg2);
 241     }
 242 
 243     /**
 244      * could not get binding from WSDL! service: {0} or port {1} not found in the WSDL {2}.
 245      * It could be because service and port names do not match WSDL''s wsdl:service and wsdl:port names:
 246      *  1. service and port names are not there in deployment descriptor OR
 247      *  2. Either there is a typo in deployment descriptor''s service and port names OR
 248      *  3. The computed names from @WebService do not match wsdl:service and wsdl:port names
 249      * Suggest doing the following:
 250      *  1. Add/Correct entries for service and port names in deployment descriptor OR
 251      *  2. Specify targetNamespace, serviceName, portName in @WebService on the endpoint class
 252      *
 253      */
 254     public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) {
 255         return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(arg0, arg1, arg2));
 256     }
 257 
 258     public static Localizable localizableSERVER_RT_ERR(Object arg0) {
 259         return messageFactory.getMessage("server.rt.err", arg0);
 260     }
 261 
 262     /**
 263      * Server Runtime Error: {0}
 264      *
 265      */
 266     public static String SERVER_RT_ERR(Object arg0) {
 267         return localizer.localize(localizableSERVER_RT_ERR(arg0));
 268     }
 269 
 270     public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) {
 271         return messageFactory.getMessage("runtime.parser.invalidAttributeValue", arg0, arg1, arg2);
 272     }
 273 
 274     /**
 275      * invalid value for attribute "{2}" of element "{1}" in runtime descriptor (line {0})
 276      *
 277      */
 278     public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) {
 279         return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1, arg2));
 280     }
 281 
 282     public static Localizable localizableNO_CURRENT_PACKET() {
 283         return messageFactory.getMessage("no.current.packet");
 284     }
 285 
 286     /**
 287      * This thread is not currently processing any web service request.
 288      *
 289      */
 290     public static String NO_CURRENT_PACKET() {
 291         return localizer.localize(localizableNO_CURRENT_PACKET());
 292     }
 293 
 294     public static Localizable localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) {
 295         return messageFactory.getMessage("runtime.parser.unexpectedContent", arg0);
 296     }
 297 
 298     /**
 299      * unexpected content in runtime descriptor (line {0})
 300      *
 301      */
 302     public static String RUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) {
 303         return localizer.localize(localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(arg0));
 304     }
 305 
 306     public static Localizable localizableSTATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) {
 307         return messageFactory.getMessage("stateful.cookie.header.required", arg0);
 308     }
 309 
 310     /**
 311      * This is a stateful web service and {0} header is required.









 312      *
 313      */
 314     public static String STATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) {
 315         return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_REQUIRED(arg0));
 316     }
 317 
 318     public static Localizable localizableNULL_IMPLEMENTOR() {
 319         return messageFactory.getMessage("null.implementor");
 320     }
 321 
 322     /**
 323      * Implementor cannot be null
 324      *
 325      */
 326     public static String NULL_IMPLEMENTOR() {
 327         return localizer.localize(localizableNULL_IMPLEMENTOR());
 328     }
 329 
 330     public static Localizable localizableRUNTIME_PARSER_WSDL(Object arg0) {
 331         return messageFactory.getMessage("runtime.parser.wsdl", arg0);
 332     }
 333 
 334     /**
 335      * exception during WSDL parsing: {0}
 336      *
 337      */
 338     public static String RUNTIME_PARSER_WSDL(Object arg0) {
 339         return localizer.localize(localizableRUNTIME_PARSER_WSDL(arg0));
 340     }
 341 
 342     public static Localizable localizableSOAPENCODER_ERR() {
 343         return messageFactory.getMessage("soapencoder.err");
 344     }
 345 
 346     /**
 347      * Error in encoding SOAP Message
 348      *
 349      */
 350     public static String SOAPENCODER_ERR() {
 351         return localizer.localize(localizableSOAPENCODER_ERR());
 352     }
 353 
 354     public static Localizable localizableWSDL_REQUIRED() {
 355         return messageFactory.getMessage("wsdl.required");
 356     }
 357 
 358     /**
 359      * wsdl is required
 360      *
 361      */
 362     public static String WSDL_REQUIRED() {
 363         return localizer.localize(localizableWSDL_REQUIRED());
 364     }
 365 
 366     public static Localizable localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) {
 367         return messageFactory.getMessage("runtime.parser.wsdl.noservice.in.wsdlmodel", arg0);
 368     }
 369 
 370     /**
 371      * There is an error in processing the WSDL {0} and no valid services are found.
 372      *
 373      */
 374     public static String RUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) {
 375         return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(arg0));
 376     }
 377 
 378     public static Localizable localizablePORT_NAME_REQUIRED() {
 379         return messageFactory.getMessage("port.name.required");
 380     }
 381 
 382     /**
 383      * Port QName is not found
 384      *
 385      */
 386     public static String PORT_NAME_REQUIRED() {
 387         return localizer.localize(localizablePORT_NAME_REQUIRED());
 388     }
 389 
 390     public static Localizable localizableWRONG_TNS_FOR_PORT(Object arg0) {
 391         return messageFactory.getMessage("wrong.tns.for.port", arg0);
 392     }
 393 
 394     /**
 395      * Port namespace {0} doesn't match Service namespace {1}
 396      *
 397      */
 398     public static String WRONG_TNS_FOR_PORT(Object arg0) {
 399         return localizer.localize(localizableWRONG_TNS_FOR_PORT(arg0));
 400     }
 401 
 402     public static Localizable localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) {
 403         return messageFactory.getMessage("runtime.parser.wsdl.multiplebinding", arg0, arg1, arg2);
 404     }
 405 
 406     /**
 407      * multiple bindings found for binding ID {0} for service {1} in WSDL {2}
 408      *
 409      */
 410     public static String RUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) {
 411         return localizer.localize(localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(arg0, arg1, arg2));
 412     }
 413 
 414     public static Localizable localizableNOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) {
 415         return messageFactory.getMessage("not.know.HttpContext.type", arg0, arg1, arg2);
 416     }
 417 
 418     /**
 419      * Doesn''t support Endpoint.publish({0}). Known context types are {1}, and {2}
 420      *
 421      */
 422     public static String NOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) {
 423         return localizer.localize(localizableNOT_KNOW_HTTP_CONTEXT_TYPE(arg0, arg1, arg2));
 424     }
 425 
 426     public static Localizable localizableNON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) {
 427         return messageFactory.getMessage("non.unique.dispatch.qname", arg0, arg1);
 428     }
 429 
 430     /**
 431      * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. Methods {0} have the same request body block {1}. Method dispatching may fail, runtime will try to dispatch using SOAPAction. Another option is to enable AddressingFeature to enabled runtime to uniquely identify WSDL operation using wsa:Action header.
 432      *
 433      */
 434     public static String NON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) {
 435         return localizer.localize(localizableNON_UNIQUE_DISPATCH_QNAME(arg0, arg1));
 436     }
 437 
 438     public static Localizable localizableALREADY_HTTP_SERVER(Object arg0) {
 439         return messageFactory.getMessage("already.http.server", arg0);
 440     }
 441 
 442     /**
 443      * There is already a HTTP server at : {0}# {0} - probably URL/port of a server
 444      *
 445      */
 446     public static String ALREADY_HTTP_SERVER(Object arg0) {
 447         return localizer.localize(localizableALREADY_HTTP_SERVER(arg0));
 448     }
 449 
 450     public static Localizable localizableCAN_NOT_GENERATE_WSDL(Object arg0) {
 451         return messageFactory.getMessage("can.not.generate.wsdl", arg0);
 452     }
 453 
 454     /**
 455      * Cannot generate WSDL for binding "{0}"
 456      *
 457      */
 458     public static String CAN_NOT_GENERATE_WSDL(Object arg0) {
 459         return localizer.localize(localizableCAN_NOT_GENERATE_WSDL(arg0));
 460     }
 461 
 462     public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) {
 463         return messageFactory.getMessage("runtime.parser.invalid.attribute.value", arg0, arg1);
 464     }
 465 
 466     /**
 467      * invalid attribute value "{1}" in runtime descriptor (line {0})
 468      *
 469      */
 470     public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) {
 471         return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1));
 472     }
 473 
 474     public static Localizable localizableRUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) {
 475         return messageFactory.getMessage("runtime.parser.wrong.element", arg0, arg1, arg2);
 476     }
 477 
 478     /**
 479      * found element "{1}", expected "{2}" in runtime descriptor (line {0})
 480      *
 481      */
 482     public static String RUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) {
 483         return localizer.localize(localizableRUNTIME_PARSER_WRONG_ELEMENT(arg0, arg1, arg2));
 484     }
 485 
 486     public static Localizable localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) {
 487         return messageFactory.getMessage("runtimemodeler.invalidannotationOnImpl", arg0, arg1, arg2);
 488     }
 489 
 490     /**
 491      * Invalid annotation: {0} on endpoint implementation class "{1}" - will be ignored. "{1}" is annotated with @WebService(endpointInterface="{2}"}, it must not be annotated with {0}, to fix it - put this annotation on the SEI {2}.
 492      *
 493      */
 494     public static String RUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) {
 495         return localizer.localize(localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(arg0, arg1, arg2));
 496     }
 497 
 498     public static Localizable localizableSERVICE_NAME_REQUIRED() {
 499         return messageFactory.getMessage("service.name.required");
 500     }
 501 
 502     /**
 503      * Service QName is not found
 504      *
 505      */
 506     public static String SERVICE_NAME_REQUIRED() {
 507         return localizer.localize(localizableSERVICE_NAME_REQUIRED());
 508     }
 509 
 510     public static Localizable localizablePROVIDER_NOT_PARAMETERIZED(Object arg0) {
 511         return messageFactory.getMessage("provider.not.parameterized", arg0);
 512     }
 513 
 514     /**
 515      * "{0}" implements Provider but doesn't specify the type parameter
 516      *
 517      */
 518     public static String PROVIDER_NOT_PARAMETERIZED(Object arg0) {
 519         return localizer.localize(localizablePROVIDER_NOT_PARAMETERIZED(arg0));
 520     }
 521 
 522     public static Localizable localizableRUNTIME_WSDL_PATCHER() {
 523         return messageFactory.getMessage("runtime.wsdl.patcher");
 524     }
 525 
 526     /**
 527      * error while patching WSDL related document
 528      *
 529      */
 530     public static String RUNTIME_WSDL_PATCHER() {
 531         return localizer.localize(localizableRUNTIME_WSDL_PATCHER());
 532     }
 533 
 534     public static Localizable localizableRUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) {
 535         return messageFactory.getMessage("runtime.saxparser.exception", arg0, arg1);
 536     }
 537 
 538     /**
 539      * {0}
 540      * {1}
 541      *
 542      */
 543     public static String RUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) {
 544         return localizer.localize(localizableRUNTIME_SAXPARSER_EXCEPTION(arg0, arg1));
 545     }
 546 
 547     public static Localizable localizableWRONG_PARAMETER_TYPE(Object arg0) {
 548         return messageFactory.getMessage("wrong.parameter.type", arg0);
 549     }
 550 
 551     /**
 552      * Incorrect argument types for method "{0}"
 553      *
 554      */
 555     public static String WRONG_PARAMETER_TYPE(Object arg0) {
 556         return localizer.localize(localizableWRONG_PARAMETER_TYPE(arg0));
 557     }
 558 
 559     public static Localizable localizableRUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) {
 560         return messageFactory.getMessage("runtime.parser.wsdl.not.found", arg0);
 561     }
 562 
 563     /**
 564      * {0} is not found in the WAR file. Package it in the WAR file or correct it in sun-jaxws.xml.
 565      *
 566      */
 567     public static String RUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) {
 568         return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOT_FOUND(arg0));
 569     }
 570 
 571     public static Localizable localizableRUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) {
 572         return messageFactory.getMessage("runtime.parser.classNotFound", arg0);
 573     }
 574 
 575     /**
 576      * class not found in runtime descriptor: {0}
 577      *
 578      */
 579     public static String RUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) {
 580         return localizer.localize(localizableRUNTIME_PARSER_CLASS_NOT_FOUND(arg0));
 581     }
 582 
 583     public static Localizable localizableUNSUPPORTED_CHARSET(Object arg0) {
 584         return messageFactory.getMessage("unsupported.charset", arg0);
 585     }
 586 
 587     /**
 588      * Unsupported charset "{0}" in the received message''s Content-Type
 589      *
 590      */
 591     public static String UNSUPPORTED_CHARSET(Object arg0) {
 592         return localizer.localize(localizableUNSUPPORTED_CHARSET(arg0));
 593     }
 594 
 595     public static Localizable localizableSTATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) {
 596         return messageFactory.getMessage("static.resource.injection.only", arg0, arg1);
 597     }
 598 
 599     /**
 600      * Static resource {0} cannot be injected to non-static "{1}"
 601      *
 602      */
 603     public static String STATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) {
 604         return localizer.localize(localizableSTATIC_RESOURCE_INJECTION_ONLY(arg0, arg1));
 605     }
 606 
 607     public static Localizable localizableNOT_ZERO_PARAMETERS(Object arg0) {
 608         return messageFactory.getMessage("not.zero.parameters", arg0);
 609     }
 610 
 611     /**
 612      * Method "{0}" shouldn''t have any arguments
 613      *
 614      */
 615     public static String NOT_ZERO_PARAMETERS(Object arg0) {
 616         return localizer.localize(localizableNOT_ZERO_PARAMETERS(arg0));
 617     }
 618 
 619     public static Localizable localizableDUPLICATE_PRIMARY_WSDL(Object arg0) {
 620         return messageFactory.getMessage("duplicate.primary.wsdl", arg0);
 621     }
 622 
 623     /**
 624      * Metadata has more than one WSDL that has Service definition for the endpoint. WSDL={0} is one such WSDL.
 625      *
 626      */
 627     public static String DUPLICATE_PRIMARY_WSDL(Object arg0) {
 628         return localizer.localize(localizableDUPLICATE_PRIMARY_WSDL(arg0));
 629     }
 630 
 631     public static Localizable localizableDUPLICATE_ABSTRACT_WSDL(Object arg0) {
 632         return messageFactory.getMessage("duplicate.abstract.wsdl", arg0);
 633     }
 634 
 635     /**
 636      * Metadata has more than one WSDL that has PortType definition for the endpoint. WSDL={0} is one such WSDL.
 637      *
 638      */
 639     public static String DUPLICATE_ABSTRACT_WSDL(Object arg0) {
 640         return localizer.localize(localizableDUPLICATE_ABSTRACT_WSDL(arg0));
 641     }
 642 
 643     public static Localizable localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) {
 644         return messageFactory.getMessage("stateful.invalid.webservice.context", arg0);
 645     }
 646 
 647     /**
 648      * Not a WebServiceContext from JAX-WS RI: {0}
 649      *
 650      */
 651     public static String STATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) {
 652         return localizer.localize(localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(arg0));
 653     }
 654 
 655     public static Localizable localizableRUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) {
 656         return messageFactory.getMessage("runtime.parser.invalidElement", arg0, arg1);
 657     }
 658 
 659     /**
 660      * invalid element "{1}" in runtime descriptor (line {0})
 661      *
 662      */
 663     public static String RUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) {
 664         return localizer.localize(localizableRUNTIME_PARSER_INVALID_ELEMENT(arg0, arg1));
 665     }
 666 
 667     public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) {
 668         return messageFactory.getMessage("runtime.parser.missing.attribute", arg0, arg1, arg2);
 669     }
 670 
 671     /**
 672      * missing attribute "{2}" in element "{1}" of runtime descriptor (line {0})
 673      *
 674      */
 675     public static String RUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) {
 676         return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(arg0, arg1, arg2));
 677     }
 678 
 679     public static Localizable localizableWRONG_FIELD_TYPE(Object arg0) {
 680         return messageFactory.getMessage("wrong.field.type", arg0);
 681     }
 682 
 683     /**
 684      * Incorrect type for field "{0}"
 685      *
 686      */
 687     public static String WRONG_FIELD_TYPE(Object arg0) {
 688         return localizer.localize(localizableWRONG_FIELD_TYPE(arg0));
 689     }
 690 
 691     public static Localizable localizableDUPLICATE_PORT_KNOWN_HEADER(Object arg0) {
 692         return messageFactory.getMessage("duplicate.portKnownHeader", arg0);
 693     }
 694 
 695     /**
 696      * Received SOAP message contains duplicate header: {0} for a bound parameter
 697      *
 698      */
 699     public static String DUPLICATE_PORT_KNOWN_HEADER(Object arg0) {
 700         return localizer.localize(localizableDUPLICATE_PORT_KNOWN_HEADER(arg0));
 701     }
 702 
 703     public static Localizable localizableUNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) {
 704         return messageFactory.getMessage("unsupported.contentType", arg0, arg1);
 705     }
 706 
 707     /**
 708      * Unsupported Content-Type: {0} Supported ones are: {1}
 709      *
 710      */
 711     public static String UNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) {
 712         return localizer.localize(localizableUNSUPPORTED_CONTENT_TYPE(arg0, arg1));
 713     }
 714 
 715     public static Localizable localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) {
 716         return messageFactory.getMessage("failed.to.instantiate.instanceResolver", arg0, arg1, arg2);
 717     }
 718 
 719     /**
 720      * Unable to instantiate {0} (which is specified in {1} on {2})
 721      *
 722      */
 723     public static String FAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) {
 724         return localizer.localize(localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(arg0, arg1, arg2));
 725     }
 726 
 727     public static Localizable localizableDD_MTOM_CONFLICT(Object arg0, Object arg1) {
 728         return messageFactory.getMessage("dd.mtom.conflict", arg0, arg1);
 729     }
 730 
 731     /**
 732      * Error in Deployment Descriptor : MTOM Configuration in binding {0} conflicts with enable-mtom attribute value {1}
 733      *
 734      */
 735     public static String DD_MTOM_CONFLICT(Object arg0, Object arg1) {
 736         return localizer.localize(localizableDD_MTOM_CONFLICT(arg0, arg1));











 737     }
 738 
 739 }
   1 /*
   2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.xml.internal.ws.resources;
  27 
  28 import java.util.Locale;
  29 import java.util.ResourceBundle;
  30 import javax.annotation.Generated;
  31 import com.sun.istack.internal.localization.Localizable;
  32 import com.sun.istack.internal.localization.LocalizableMessageFactory;
  33 import com.sun.istack.internal.localization.LocalizableMessageFactory.ResourceBundleSupplier;
  34 import com.sun.istack.internal.localization.Localizer;
  35 



  36 
  37 /**
  38  * Defines string formatting method for each constant in the resource file
  39  *
  40  */
  41 @Generated("com.sun.istack.internal.maven.ResourceGenMojo")
  42 public final class ServerMessages {




  43 
  44     private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.server";
  45     private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ServerMessages.BundleSupplier());
  46     private final static Localizer LOCALIZER = new Localizer();
  47 
  48     public static Localizable localizableDUPLICATE_ABSTRACT_WSDL(Object arg0) {
  49         return MESSAGE_FACTORY.getMessage("duplicate.abstract.wsdl", arg0);
  50     }
  51 
  52     /**
  53      * Metadata has more than one WSDL that has PortType definition for the endpoint. WSDL={0} is one such WSDL.









  54      *
  55      */
  56     public static String DUPLICATE_ABSTRACT_WSDL(Object arg0) {
  57         return LOCALIZER.localize(localizableDUPLICATE_ABSTRACT_WSDL(arg0));
  58     }
  59 
  60     public static Localizable localizableNOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) {
  61         return MESSAGE_FACTORY.getMessage("not.know.HttpContext.type", arg0, arg1, arg2);
  62     }
  63 
  64     /**
  65      * Doesn''t support Endpoint.publish({0}). Known context types are {1}, and {2}
  66      *
  67      */
  68     public static String NOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) {
  69         return LOCALIZER.localize(localizableNOT_KNOW_HTTP_CONTEXT_TYPE(arg0, arg1, arg2));
  70     }
  71 
  72     public static Localizable localizableUNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) {
  73         return MESSAGE_FACTORY.getMessage("unsupported.contentType", arg0, arg1);
  74     }
  75 
  76     /**
  77      * Unsupported Content-Type: {0} Supported ones are: {1}
  78      *
  79      */
  80     public static String UNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) {
  81         return LOCALIZER.localize(localizableUNSUPPORTED_CONTENT_TYPE(arg0, arg1));
  82     }
  83 
  84     public static Localizable localizableRUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) {
  85         return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.not.found", arg0);
  86     }
  87 
  88     /**
  89      * {0} is not found in the WAR file. Package it in the WAR file or correct it in sun-jaxws.xml.
  90      *
  91      */
  92     public static String RUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) {
  93         return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_NOT_FOUND(arg0));
  94     }
  95 
  96     public static Localizable localizableSOAPENCODER_ERR() {
  97         return MESSAGE_FACTORY.getMessage("soapencoder.err");
  98     }
  99 
 100     /**
 101      * Error in encoding SOAP Message
 102      *
 103      */
 104     public static String SOAPENCODER_ERR() {
 105         return LOCALIZER.localize(localizableSOAPENCODER_ERR());
 106     }
 107 
 108     public static Localizable localizableWSDL_REQUIRED() {
 109         return MESSAGE_FACTORY.getMessage("wsdl.required");
 110     }
 111 
 112     /**
 113      * wsdl is required
 114      *
 115      */
 116     public static String WSDL_REQUIRED() {
 117         return LOCALIZER.localize(localizableWSDL_REQUIRED());
 118     }
 119 
 120     public static Localizable localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) {
 121         return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.noservice.in.wsdlmodel", arg0);
 122     }
 123 
 124     /**
 125      * There is an error in processing the WSDL {0} and no valid services are found.
 126      *
 127      */
 128     public static String RUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) {
 129         return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(arg0));
 130     }
 131 
 132     public static Localizable localizableNULL_IMPLEMENTOR() {
 133         return MESSAGE_FACTORY.getMessage("null.implementor");
 134     }
 135 
 136     /**
 137      * Implementor cannot be null
 138      *
 139      */
 140     public static String NULL_IMPLEMENTOR() {
 141         return LOCALIZER.localize(localizableNULL_IMPLEMENTOR());
 142     }
 143 
 144     public static Localizable localizableSERVER_RT_ERR(Object arg0) {
 145         return MESSAGE_FACTORY.getMessage("server.rt.err", arg0);
 146     }
 147 
 148     /**
 149      * Server Runtime Error: {0}
 150      *
 151      */
 152     public static String SERVER_RT_ERR(Object arg0) {
 153         return LOCALIZER.localize(localizableSERVER_RT_ERR(arg0));
 154     }
 155 
 156     public static Localizable localizableWRONG_PARAMETER_TYPE(Object arg0) {
 157         return MESSAGE_FACTORY.getMessage("wrong.parameter.type", arg0);
 158     }
 159 
 160     /**
 161      * Incorrect argument types for method "{0}"
 162      *
 163      */
 164     public static String WRONG_PARAMETER_TYPE(Object arg0) {
 165         return LOCALIZER.localize(localizableWRONG_PARAMETER_TYPE(arg0));
 166     }
 167 
 168     public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) {
 169         return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.incorrectserviceport", arg0, arg1, arg2);
 170     }
 171 
 172     /**
 173      * could not get binding from WSDL! service: {0} or port {1} not found in the WSDL {2}.
 174      * It could be because service and port names do not match WSDL''s wsdl:service and wsdl:port names:
 175      *  1. service and port names are not there in deployment descriptor OR
 176      *  2. Either there is a typo in deployment descriptor''s service and port names OR
 177      *  3. The computed names from @WebService do not match wsdl:service and wsdl:port names
 178      * Suggest doing the following:
 179      *  1. Add/Correct entries for service and port names in deployment descriptor OR
 180      *  2. Specify targetNamespace, serviceName, portName in @WebService on the endpoint class
 181      *
 182      */
 183     public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) {
 184         return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(arg0, arg1, arg2));
 185     }
 186 
 187     public static Localizable localizableRUNTIME_PARSER_XML_READER(Object arg0) {
 188         return MESSAGE_FACTORY.getMessage("runtime.parser.xmlReader", arg0);
 189     }
 190 
 191     /**
 192      * error parsing runtime descriptor: {0}
 193      *
 194      */
 195     public static String RUNTIME_PARSER_XML_READER(Object arg0) {
 196         return LOCALIZER.localize(localizableRUNTIME_PARSER_XML_READER(arg0));
 197     }
 198 
 199     public static Localizable localizableDD_MTOM_CONFLICT(Object arg0, Object arg1) {
 200         return MESSAGE_FACTORY.getMessage("dd.mtom.conflict", arg0, arg1);
 201     }
 202 
 203     /**
 204      * Error in Deployment Descriptor : MTOM Configuration in binding {0} conflicts with enable-mtom attribute value {1}
 205      *
 206      */
 207     public static String DD_MTOM_CONFLICT(Object arg0, Object arg1) {
 208         return LOCALIZER.localize(localizableDD_MTOM_CONFLICT(arg0, arg1));
 209     }
 210 
 211     public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) {
 212         return MESSAGE_FACTORY.getMessage("runtime.parser.invalid.attribute.value", arg0, arg1);
 213     }
 214 
 215     /**
 216      * invalid attribute value "{1}" in runtime descriptor (line {0})
 217      *
 218      */
 219     public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) {
 220         return LOCALIZER.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1));
 221     }
 222 
 223     public static Localizable localizableRUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) {
 224         return MESSAGE_FACTORY.getMessage("runtime.saxparser.exception", arg0, arg1);
 225     }
 226 
 227     /**
 228      * {0}
 229      * {1}
 230      *
 231      */
 232     public static String RUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) {
 233         return LOCALIZER.localize(localizableRUNTIME_SAXPARSER_EXCEPTION(arg0, arg1));
 234     }
 235 
 236     public static Localizable localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER() {
 237         return MESSAGE_FACTORY.getMessage("runtime.parser.invalidVersionNumber");
 238     }
 239 
 240     /**
 241      * unsupported runtime descriptor version: {2}







 242      *
 243      */
 244     public static String RUNTIME_PARSER_INVALID_VERSION_NUMBER() {
 245         return LOCALIZER.localize(localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER());
 246     }
 247 
 248     public static Localizable localizableWRONG_TNS_FOR_PORT(Object arg0) {
 249         return MESSAGE_FACTORY.getMessage("wrong.tns.for.port", arg0);
 250     }
 251 
 252     /**
 253      * Port namespace {0} doesn't match Service namespace {1}
 254      *
 255      */
 256     public static String WRONG_TNS_FOR_PORT(Object arg0) {
 257         return LOCALIZER.localize(localizableWRONG_TNS_FOR_PORT(arg0));
 258     }
 259 
 260     public static Localizable localizableANNOTATION_ONLY_ONCE(Object arg0) {
 261         return MESSAGE_FACTORY.getMessage("annotation.only.once", arg0);
 262     }
 263 
 264     /**
 265      * Only one method should have the annotation "{0}"
 266      *
 267      */
 268     public static String ANNOTATION_ONLY_ONCE(Object arg0) {
 269         return LOCALIZER.localize(localizableANNOTATION_ONLY_ONCE(arg0));
 270     }
 271 
 272     public static Localizable localizableSTATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) {
 273         return MESSAGE_FACTORY.getMessage("stateful.cookie.header.incorrect", arg0, arg1);
 274     }
 275 
 276     /**
 277      * Invalid/expired {0} header value: {1}
 278      *
 279      */
 280     public static String STATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) {
 281         return LOCALIZER.localize(localizableSTATEFUL_COOKIE_HEADER_INCORRECT(arg0, arg1));
 282     }
 283 
 284     public static Localizable localizableSERVICE_NAME_REQUIRED() {
 285         return MESSAGE_FACTORY.getMessage("service.name.required");
 286     }
 287 
 288     /**
 289      * Service QName is not found
 290      *
 291      */
 292     public static String SERVICE_NAME_REQUIRED() {
 293         return LOCALIZER.localize(localizableSERVICE_NAME_REQUIRED());
 294     }
 295 
 296     public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) {
 297         return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.incorrectservice", arg0, arg1);
 298     }
 299 
 300     /**
 301      * could not get binding from WSDL! service: {0} not found in the WSDL {1}.
 302      * It could be because service name does not match WSDL''s wsdl:service name:
 303      *  1. service name is not there in deployment descriptor OR
 304      *  2. Either there is a typo in deployment descriptor''s service name OR
 305      *  3. The computed names from @WebService do not match wsdl:service name
 306      * OR
 307      *  1. There is an error while parsing the wsdl and Service with name {0} is not found in the WSDLModel.
 308      * Suggest doing the following:
 309      *  1. Add/Correct entries for service name in deployment descriptor OR
 310      *  2. Specify targetNamespace, serviceName in @WebService on the endpoint class
 311      *
 312      */
 313     public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) {
 314         return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(arg0, arg1));
 315     }
 316 
 317     public static Localizable localizableDUPLICATE_PRIMARY_WSDL(Object arg0) {
 318         return MESSAGE_FACTORY.getMessage("duplicate.primary.wsdl", arg0);
 319     }
 320 
 321     /**
 322      * Metadata has more than one WSDL that has Service definition for the endpoint. WSDL={0} is one such WSDL.
 323      *
 324      */
 325     public static String DUPLICATE_PRIMARY_WSDL(Object arg0) {
 326         return LOCALIZER.localize(localizableDUPLICATE_PRIMARY_WSDL(arg0));
 327     }
 328 
 329     public static Localizable localizableGENERATE_NON_STANDARD_WSDL() {
 330         return MESSAGE_FACTORY.getMessage("generate.non.standard.wsdl");
 331     }
 332 
 333     /**
 334      * Generating non-standard WSDL for the specified binding
 335      *
 336      */
 337     public static String GENERATE_NON_STANDARD_WSDL() {
 338         return LOCALIZER.localize(localizableGENERATE_NON_STANDARD_WSDL());
 339     }
 340 
 341     public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() {
 342         return MESSAGE_FACTORY.getMessage("runtime.parser.missing.attribute.no.line");
 343     }
 344 
 345     /**
 346      * missing attribute "{2}" in element "{1}" of runtime descriptor
 347      *
 348      */
 349     public static String RUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() {
 350         return LOCALIZER.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE());
 351     }
 352 
 353     public static Localizable localizableWRONG_FIELD_TYPE(Object arg0) {
 354         return MESSAGE_FACTORY.getMessage("wrong.field.type", arg0);
 355     }
 356 
 357     /**
 358      * Incorrect type for field "{0}"
 359      *
 360      */
 361     public static String WRONG_FIELD_TYPE(Object arg0) {
 362         return LOCALIZER.localize(localizableWRONG_FIELD_TYPE(arg0));
 363     }
 364 
 365     public static Localizable localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) {
 366         return MESSAGE_FACTORY.getMessage("failed.to.instantiate.instanceResolver", arg0, arg1, arg2);
 367     }
 368 
 369     /**
 370      * Unable to instantiate {0} (which is specified in {1} on {2})
 371      *
 372      */
 373     public static String FAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) {
 374         return LOCALIZER.localize(localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(arg0, arg1, arg2));
 375     }
 376 
 377     public static Localizable localizablePROVIDER_NOT_PARAMETERIZED(Object arg0) {
 378         return MESSAGE_FACTORY.getMessage("provider.not.parameterized", arg0);
 379     }
 380 
 381     /**
 382      * "{0}" implements Provider but doesn't specify the type parameter
 383      *
 384      */
 385     public static String PROVIDER_NOT_PARAMETERIZED(Object arg0) {
 386         return LOCALIZER.localize(localizablePROVIDER_NOT_PARAMETERIZED(arg0));
 387     }
 388 
 389     public static Localizable localizableDISPATCH_CANNOT_FIND_METHOD(Object arg0) {
 390         return MESSAGE_FACTORY.getMessage("dispatch.cannotFindMethod", arg0);
 391     }
 392 
 393     /**
 394      * Cannot find dispatch method for {0}
 395      *
 396      */
 397     public static String DISPATCH_CANNOT_FIND_METHOD(Object arg0) {
 398         return LOCALIZER.localize(localizableDISPATCH_CANNOT_FIND_METHOD(arg0));
 399     }
 400 
 401     public static Localizable localizableRUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) {
 402         return MESSAGE_FACTORY.getMessage("runtime.parser.wrong.element", arg0, arg1, arg2);
 403     }
 404 
 405     /**
 406      * found element "{1}", expected "{2}" in runtime descriptor (line {0})
 407      *
 408      */
 409     public static String RUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) {
 410         return LOCALIZER.localize(localizableRUNTIME_PARSER_WRONG_ELEMENT(arg0, arg1, arg2));
 411     }
 412 
 413     public static Localizable localizableUNSUPPORTED_CHARSET(Object arg0) {
 414         return MESSAGE_FACTORY.getMessage("unsupported.charset", arg0);
 415     }
 416 
 417     /**
 418      * Unsupported charset "{0}" in the received message''s Content-Type
 419      *
 420      */
 421     public static String UNSUPPORTED_CHARSET(Object arg0) {
 422         return LOCALIZER.localize(localizableUNSUPPORTED_CHARSET(arg0));
 423     }
 424 
 425     public static Localizable localizableSTATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) {
 426         return MESSAGE_FACTORY.getMessage("stateful.cookie.header.required", arg0);
 427     }
 428 
 429     /**
 430      * This is a stateful web service and {0} header is required.
 431      *
 432      */
 433     public static String STATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) {
 434         return LOCALIZER.localize(localizableSTATEFUL_COOKIE_HEADER_REQUIRED(arg0));
 435     }
 436 
 437     public static Localizable localizableRUNTIME_WSDL_PATCHER() {
 438         return MESSAGE_FACTORY.getMessage("runtime.wsdl.patcher");
 439     }
 440 
 441     /**
 442      * error while patching WSDL related document
 443      *
 444      */
 445     public static String RUNTIME_WSDL_PATCHER() {
 446         return LOCALIZER.localize(localizableRUNTIME_WSDL_PATCHER());
 447     }
 448 
 449     public static Localizable localizableSTATEFUL_REQURES_ADDRESSING(Object arg0) {
 450         return MESSAGE_FACTORY.getMessage("stateful.requres.addressing", arg0);
 451     }
 452 
 453     /**
 454      * Stateful web service {0} requires the WS-Addressing support to be enabled. Perhaps you are missing @Addressing
 455      *
 456      */
 457     public static String STATEFUL_REQURES_ADDRESSING(Object arg0) {
 458         return LOCALIZER.localize(localizableSTATEFUL_REQURES_ADDRESSING(arg0));
 459     }
 460 
 461     public static Localizable localizableNON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) {
 462         return MESSAGE_FACTORY.getMessage("non.unique.dispatch.qname", arg0, arg1);
 463     }
 464 
 465     /**
 466      * Non unique body parts! In a port, as per BP 1.1 R2710 operations must have unique operation signature on the wire for successful dispatch. Methods {0} have the same request body block {1}. Method dispatching may fail, runtime will try to dispatch using SOAPAction. Another option is to enable AddressingFeature to enabled runtime to uniquely identify WSDL operation using wsa:Action header.
 467      *
 468      */
 469     public static String NON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) {
 470         return LOCALIZER.localize(localizableNON_UNIQUE_DISPATCH_QNAME(arg0, arg1));
 471     }
 472 
 473     public static Localizable localizableALREADY_HTTP_SERVER(Object arg0) {
 474         return MESSAGE_FACTORY.getMessage("already.http.server", arg0);
 475     }
 476 
 477     /**
 478      * There is already a HTTP server at : {0}# {0} - probably URL/port of a server
 479      *
 480      */
 481     public static String ALREADY_HTTP_SERVER(Object arg0) {
 482         return LOCALIZER.localize(localizableALREADY_HTTP_SERVER(arg0));
 483     }
 484 
 485     public static Localizable localizableWRONG_NO_PARAMETERS(Object arg0) {
 486         return MESSAGE_FACTORY.getMessage("wrong.no.parameters", arg0);
 487     }
 488 
 489     /**
 490      * Incorrect no of arguments for method "{0}"
 491      *
 492      */
 493     public static String WRONG_NO_PARAMETERS(Object arg0) {
 494         return LOCALIZER.localize(localizableWRONG_NO_PARAMETERS(arg0));
 495     }
 496 
 497     public static Localizable localizableNOT_ZERO_PARAMETERS(Object arg0) {
 498         return MESSAGE_FACTORY.getMessage("not.zero.parameters", arg0);
 499     }
 500 
 501     /**
 502      * Method "{0}" shouldn''t have any arguments
 503      *
 504      */
 505     public static String NOT_ZERO_PARAMETERS(Object arg0) {
 506         return LOCALIZER.localize(localizableNOT_ZERO_PARAMETERS(arg0));
 507     }
 508 
 509     public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) {
 510         return MESSAGE_FACTORY.getMessage("runtime.parser.invalidAttributeValue", arg0, arg1, arg2);
 511     }
 512 
 513     /**
 514      * invalid value for attribute "{2}" of element "{1}" in runtime descriptor (line {0})
 515      *
 516      */
 517     public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) {
 518         return LOCALIZER.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1, arg2));
 519     }
 520 
 521     public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) {
 522         return MESSAGE_FACTORY.getMessage("runtime.parser.missing.attribute", arg0, arg1, arg2);
 523     }
 524 
 525     /**
 526      * missing attribute "{2}" in element "{1}" of runtime descriptor (line {0})
 527      *
 528      */
 529     public static String RUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) {
 530         return LOCALIZER.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(arg0, arg1, arg2));
 531     }
 532 
 533     public static Localizable localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) {
 534         return MESSAGE_FACTORY.getMessage("runtime.parser.unexpectedContent", arg0);
 535     }
 536 
 537     /**
 538      * unexpected content in runtime descriptor (line {0})

 539      *
 540      */
 541     public static String RUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) {
 542         return LOCALIZER.localize(localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(arg0));
 543     }
 544 
 545     public static Localizable localizableRUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) {
 546         return MESSAGE_FACTORY.getMessage("runtime.parser.classNotFound", arg0);
 547     }
 548 
 549     /**
 550      * class not found in runtime descriptor: {0}
 551      *
 552      */
 553     public static String RUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) {
 554         return LOCALIZER.localize(localizableRUNTIME_PARSER_CLASS_NOT_FOUND(arg0));
 555     }
 556 
 557     public static Localizable localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) {
 558         return MESSAGE_FACTORY.getMessage("stateful.invalid.webservice.context", arg0);
 559     }
 560 
 561     /**
 562      * Not a WebServiceContext from JAX-WS RI: {0}
 563      *
 564      */
 565     public static String STATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) {
 566         return LOCALIZER.localize(localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(arg0));
 567     }
 568 
 569     public static Localizable localizableNO_CURRENT_PACKET() {
 570         return MESSAGE_FACTORY.getMessage("no.current.packet");
 571     }
 572 
 573     /**
 574      * This thread is not currently processing any web service request.
 575      *
 576      */
 577     public static String NO_CURRENT_PACKET() {
 578         return LOCALIZER.localize(localizableNO_CURRENT_PACKET());
 579     }
 580 
 581     public static Localizable localizableDUPLICATE_PORT_KNOWN_HEADER(Object arg0) {
 582         return MESSAGE_FACTORY.getMessage("duplicate.portKnownHeader", arg0);
 583     }
 584 
 585     /**
 586      * Received SOAP message contains duplicate header: {0} for a bound parameter
 587      *
 588      */
 589     public static String DUPLICATE_PORT_KNOWN_HEADER(Object arg0) {
 590         return LOCALIZER.localize(localizableDUPLICATE_PORT_KNOWN_HEADER(arg0));
 591     }
 592 
 593     public static Localizable localizableSTATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) {
 594         return MESSAGE_FACTORY.getMessage("static.resource.injection.only", arg0, arg1);
 595     }
 596 
 597     /**
 598      * Static resource {0} cannot be injected to non-static "{1}"
 599      *
 600      */
 601     public static String STATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) {
 602         return LOCALIZER.localize(localizableSTATIC_RESOURCE_INJECTION_ONLY(arg0, arg1));
 603     }
 604 
 605     public static Localizable localizableCAN_NOT_GENERATE_WSDL(Object arg0) {
 606         return MESSAGE_FACTORY.getMessage("can.not.generate.wsdl", arg0);
 607     }
 608 
 609     /**
 610      * Cannot generate WSDL for binding "{0}"
 611      *
 612      */
 613     public static String CAN_NOT_GENERATE_WSDL(Object arg0) {
 614         return LOCALIZER.localize(localizableCAN_NOT_GENERATE_WSDL(arg0));
 615     }
 616 
 617     public static Localizable localizableALREADY_HTTPS_SERVER(Object arg0) {
 618         return MESSAGE_FACTORY.getMessage("already.https.server", arg0);
 619     }
 620 
 621     /**
 622      * There is already a HTTPS server at : {0}
 623      *
 624      */
 625     public static String ALREADY_HTTPS_SERVER(Object arg0) {
 626         return LOCALIZER.localize(localizableALREADY_HTTPS_SERVER(arg0));
 627     }
 628 
 629     public static Localizable localizableRUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) {
 630         return MESSAGE_FACTORY.getMessage("runtime.parser.invalidElement", arg0, arg1);
 631     }
 632 
 633     /**
 634      * invalid element "{1}" in runtime descriptor (line {0})
 635      *
 636      */
 637     public static String RUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) {
 638         return LOCALIZER.localize(localizableRUNTIME_PARSER_INVALID_ELEMENT(arg0, arg1));
 639     }
 640 
 641     public static Localizable localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) {
 642         return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl.multiplebinding", arg0, arg1, arg2);
 643     }
 644 
 645     /**
 646      * multiple bindings found for binding ID {0} for service {1} in WSDL {2}
 647      *
 648      */
 649     public static String RUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) {
 650         return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(arg0, arg1, arg2));
 651     }
 652 
 653     public static Localizable localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) {
 654         return MESSAGE_FACTORY.getMessage("runtimemodeler.invalidannotationOnImpl", arg0, arg1, arg2);
 655     }
 656 
 657     /**
 658      * Invalid annotation: {0} on endpoint implementation class "{1}" - will be ignored. "{1}" is annotated with @WebService(endpointInterface="{2}"}, it must not be annotated with {0}, to fix it - put this annotation on the SEI {2}.
 659      *
 660      */
 661     public static String RUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) {
 662         return LOCALIZER.localize(localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(arg0, arg1, arg2));
 663     }
 664 
 665     public static Localizable localizablePROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) {
 666         return MESSAGE_FACTORY.getMessage("provider.invalid.parameterType", arg0, arg1);
 667     }
 668 
 669     /**
 670      * "{0}" implements Provider but its type parameter {1} is incorrect
 671      *
 672      */
 673     public static String PROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) {
 674         return LOCALIZER.localize(localizablePROVIDER_INVALID_PARAMETER_TYPE(arg0, arg1));
 675     }
 676 
 677     public static Localizable localizableRUNTIME_PARSER_WSDL(Object arg0) {
 678         return MESSAGE_FACTORY.getMessage("runtime.parser.wsdl", arg0);
 679     }
 680 
 681     /**
 682      * exception during WSDL parsing: {0}
 683      *
 684      */
 685     public static String RUNTIME_PARSER_WSDL(Object arg0) {
 686         return LOCALIZER.localize(localizableRUNTIME_PARSER_WSDL(arg0));
 687     }
 688 
 689     public static Localizable localizableNO_CONTENT_TYPE() {
 690         return MESSAGE_FACTORY.getMessage("no.contentType");
 691     }
 692 
 693     /**
 694      * Request doesn't have a Content-Type
 695      *
 696      */
 697     public static String NO_CONTENT_TYPE() {
 698         return LOCALIZER.localize(localizableNO_CONTENT_TYPE());
 699     }
 700 
 701     public static Localizable localizableNOT_IMPLEMENT_PROVIDER(Object arg0) {
 702         return MESSAGE_FACTORY.getMessage("not.implement.provider", arg0);
 703     }
 704 
 705     /**
 706      * "{0}" doesn't implement Provider
 707      *
 708      */
 709     public static String NOT_IMPLEMENT_PROVIDER(Object arg0) {
 710         return LOCALIZER.localize(localizableNOT_IMPLEMENT_PROVIDER(arg0));
 711     }
 712 
 713     public static Localizable localizableSOAPDECODER_ERR() {
 714         return MESSAGE_FACTORY.getMessage("soapdecoder.err");
 715     }
 716 
 717     /**
 718      * Error in decoding SOAP Message
 719      *
 720      */
 721     public static String SOAPDECODER_ERR() {
 722         return LOCALIZER.localize(localizableSOAPDECODER_ERR());
 723     }
 724 
 725     public static Localizable localizablePORT_NAME_REQUIRED() {
 726         return MESSAGE_FACTORY.getMessage("port.name.required");
 727     }
 728 
 729     /**
 730      * Port QName is not found
 731      *
 732      */
 733     public static String PORT_NAME_REQUIRED() {
 734         return LOCALIZER.localize(localizablePORT_NAME_REQUIRED());
 735     }
 736 
 737     private static class BundleSupplier
 738         implements ResourceBundleSupplier
 739     {
 740 
 741 
 742         public ResourceBundle getResourceBundle(Locale locale) {
 743             return ResourceBundle.getBundle(BUNDLE_NAME, locale);
 744         }
 745 
 746     }
 747 
 748 }
< prev index next >