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

Thu, 31 Aug 2017 15:18:52 +0800

author
aoqi
date
Thu, 31 Aug 2017 15:18:52 +0800
changeset 637
9c07ef4934dd
parent 368
0989ad8c0860
parent 0
373ffda63c9a
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation. Oracle designates this
aoqi@0 8 * particular file as subject to the "Classpath" exception as provided
aoqi@0 9 * by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 *
aoqi@0 11 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 * accompanied this code).
aoqi@0 16 *
aoqi@0 17 * You should have received a copy of the GNU General Public License version
aoqi@0 18 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 *
aoqi@0 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 * or visit www.oracle.com if you need additional information or have any
aoqi@0 23 * questions.
aoqi@0 24 */
aoqi@0 25
aoqi@0 26 package com.sun.xml.internal.ws.resources;
aoqi@0 27
aoqi@0 28 import com.sun.istack.internal.localization.Localizable;
aoqi@0 29 import com.sun.istack.internal.localization.LocalizableMessageFactory;
aoqi@0 30 import com.sun.istack.internal.localization.Localizer;
aoqi@0 31
aoqi@0 32
aoqi@0 33 /**
aoqi@0 34 * Defines string formatting method for each constant in the resource file
aoqi@0 35 *
aoqi@0 36 */
aoqi@0 37 public final class ServerMessages {
aoqi@0 38
aoqi@0 39 private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.server");
aoqi@0 40 private final static Localizer localizer = new Localizer();
aoqi@0 41
aoqi@0 42 public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) {
aoqi@0 43 return messageFactory.getMessage("runtime.parser.wsdl.incorrectservice", arg0, arg1);
aoqi@0 44 }
aoqi@0 45
aoqi@0 46 /**
aoqi@0 47 * could not get binding from WSDL! service: {0} not found in the WSDL {1}.
aoqi@0 48 * It could be because service name does not match WSDL''s wsdl:service name:
aoqi@0 49 * 1. service name is not there in deployment descriptor OR
aoqi@0 50 * 2. Either there is a typo in deployment descriptor''s service name OR
aoqi@0 51 * 3. The computed names from @WebService do not match wsdl:service name
aoqi@0 52 * OR
aoqi@0 53 * 1. There is an error while parsing the wsdl and Service with name {0} is not found in the WSDLModel.
aoqi@0 54 * Suggest doing the following:
aoqi@0 55 * 1. Add/Correct entries for service name in deployment descriptor OR
aoqi@0 56 * 2. Specify targetNamespace, serviceName in @WebService on the endpoint class
aoqi@0 57 *
aoqi@0 58 */
aoqi@0 59 public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) {
aoqi@0 60 return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(arg0, arg1));
aoqi@0 61 }
aoqi@0 62
aoqi@0 63 public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() {
aoqi@0 64 return messageFactory.getMessage("runtime.parser.missing.attribute.no.line");
aoqi@0 65 }
aoqi@0 66
aoqi@0 67 /**
aoqi@0 68 * missing attribute "{2}" in element "{1}" of runtime descriptor
aoqi@0 69 *
aoqi@0 70 */
aoqi@0 71 public static String RUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() {
aoqi@0 72 return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE());
aoqi@0 73 }
aoqi@0 74
aoqi@0 75 public static Localizable localizableSTATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) {
aoqi@0 76 return messageFactory.getMessage("stateful.cookie.header.incorrect", arg0, arg1);
aoqi@0 77 }
aoqi@0 78
aoqi@0 79 /**
aoqi@0 80 * Invalid/expired {0} header value: {1}
aoqi@0 81 *
aoqi@0 82 */
aoqi@0 83 public static String STATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) {
aoqi@0 84 return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_INCORRECT(arg0, arg1));
aoqi@0 85 }
aoqi@0 86
aoqi@0 87 public static Localizable localizableNOT_IMPLEMENT_PROVIDER(Object arg0) {
aoqi@0 88 return messageFactory.getMessage("not.implement.provider", arg0);
aoqi@0 89 }
aoqi@0 90
aoqi@0 91 /**
aoqi@0 92 * "{0}" doesn't implement Provider
aoqi@0 93 *
aoqi@0 94 */
aoqi@0 95 public static String NOT_IMPLEMENT_PROVIDER(Object arg0) {
aoqi@0 96 return localizer.localize(localizableNOT_IMPLEMENT_PROVIDER(arg0));
aoqi@0 97 }
aoqi@0 98
aoqi@0 99 public static Localizable localizableSTATEFUL_REQURES_ADDRESSING(Object arg0) {
aoqi@0 100 return messageFactory.getMessage("stateful.requres.addressing", arg0);
aoqi@0 101 }
aoqi@0 102
aoqi@0 103 /**
aoqi@0 104 * Stateful web service {0} requires the WS-Addressing support to be enabled. Perhaps you are missing @Addressing
aoqi@0 105 *
aoqi@0 106 */
aoqi@0 107 public static String STATEFUL_REQURES_ADDRESSING(Object arg0) {
aoqi@0 108 return localizer.localize(localizableSTATEFUL_REQURES_ADDRESSING(arg0));
aoqi@0 109 }
aoqi@0 110
aoqi@0 111 public static Localizable localizableSOAPDECODER_ERR() {
aoqi@0 112 return messageFactory.getMessage("soapdecoder.err");
aoqi@0 113 }
aoqi@0 114
aoqi@0 115 /**
aoqi@0 116 * Error in decoding SOAP Message
aoqi@0 117 *
aoqi@0 118 */
aoqi@0 119 public static String SOAPDECODER_ERR() {
aoqi@0 120 return localizer.localize(localizableSOAPDECODER_ERR());
aoqi@0 121 }
aoqi@0 122
aoqi@0 123 public static Localizable localizableGENERATE_NON_STANDARD_WSDL() {
aoqi@0 124 return messageFactory.getMessage("generate.non.standard.wsdl");
aoqi@0 125 }
aoqi@0 126
aoqi@0 127 /**
aoqi@0 128 * Generating non-standard WSDL for the specified binding
aoqi@0 129 *
aoqi@0 130 */
aoqi@0 131 public static String GENERATE_NON_STANDARD_WSDL() {
aoqi@0 132 return localizer.localize(localizableGENERATE_NON_STANDARD_WSDL());
aoqi@0 133 }
aoqi@0 134
aoqi@0 135 public static Localizable localizableDISPATCH_CANNOT_FIND_METHOD(Object arg0) {
aoqi@0 136 return messageFactory.getMessage("dispatch.cannotFindMethod", arg0);
aoqi@0 137 }
aoqi@0 138
aoqi@0 139 /**
aoqi@0 140 * Cannot find dispatch method for {0}
aoqi@0 141 *
aoqi@0 142 */
aoqi@0 143 public static String DISPATCH_CANNOT_FIND_METHOD(Object arg0) {
aoqi@0 144 return localizer.localize(localizableDISPATCH_CANNOT_FIND_METHOD(arg0));
aoqi@0 145 }
aoqi@0 146
aoqi@0 147 public static Localizable localizableNO_CONTENT_TYPE() {
aoqi@0 148 return messageFactory.getMessage("no.contentType");
aoqi@0 149 }
aoqi@0 150
aoqi@0 151 /**
aoqi@0 152 * Request doesn't have a Content-Type
aoqi@0 153 *
aoqi@0 154 */
aoqi@0 155 public static String NO_CONTENT_TYPE() {
aoqi@0 156 return localizer.localize(localizableNO_CONTENT_TYPE());
aoqi@0 157 }
aoqi@0 158
aoqi@0 159 public static Localizable localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER() {
aoqi@0 160 return messageFactory.getMessage("runtime.parser.invalidVersionNumber");
aoqi@0 161 }
aoqi@0 162
aoqi@0 163 /**
aoqi@0 164 * unsupported runtime descriptor version: {2}
aoqi@0 165 *
aoqi@0 166 */
aoqi@0 167 public static String RUNTIME_PARSER_INVALID_VERSION_NUMBER() {
aoqi@0 168 return localizer.localize(localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER());
aoqi@0 169 }
aoqi@0 170
aoqi@0 171 public static Localizable localizablePROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) {
aoqi@0 172 return messageFactory.getMessage("provider.invalid.parameterType", arg0, arg1);
aoqi@0 173 }
aoqi@0 174
aoqi@0 175 /**
aoqi@0 176 * "{0}" implements Provider but its type parameter {1} is incorrect
aoqi@0 177 *
aoqi@0 178 */
aoqi@0 179 public static String PROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) {
aoqi@0 180 return localizer.localize(localizablePROVIDER_INVALID_PARAMETER_TYPE(arg0, arg1));
aoqi@0 181 }
aoqi@0 182
aoqi@0 183 public static Localizable localizableWRONG_NO_PARAMETERS(Object arg0) {
aoqi@0 184 return messageFactory.getMessage("wrong.no.parameters", arg0);
aoqi@0 185 }
aoqi@0 186
aoqi@0 187 /**
aoqi@0 188 * Incorrect no of arguments for method "{0}"
aoqi@0 189 *
aoqi@0 190 */
aoqi@0 191 public static String WRONG_NO_PARAMETERS(Object arg0) {
aoqi@0 192 return localizer.localize(localizableWRONG_NO_PARAMETERS(arg0));
aoqi@0 193 }
aoqi@0 194
aoqi@0 195 public static Localizable localizableANNOTATION_ONLY_ONCE(Object arg0) {
aoqi@0 196 return messageFactory.getMessage("annotation.only.once", arg0);
aoqi@0 197 }
aoqi@0 198
aoqi@0 199 /**
aoqi@0 200 * Only one method should have the annotation "{0}"
aoqi@0 201 *
aoqi@0 202 */
aoqi@0 203 public static String ANNOTATION_ONLY_ONCE(Object arg0) {
aoqi@0 204 return localizer.localize(localizableANNOTATION_ONLY_ONCE(arg0));
aoqi@0 205 }
aoqi@0 206
aoqi@0 207 public static Localizable localizableALREADY_HTTPS_SERVER(Object arg0) {
aoqi@0 208 return messageFactory.getMessage("already.https.server", arg0);
aoqi@0 209 }
aoqi@0 210
aoqi@0 211 /**
aoqi@0 212 * There is already a HTTPS server at : {0}
aoqi@0 213 *
aoqi@0 214 */
aoqi@0 215 public static String ALREADY_HTTPS_SERVER(Object arg0) {
aoqi@0 216 return localizer.localize(localizableALREADY_HTTPS_SERVER(arg0));
aoqi@0 217 }
aoqi@0 218
aoqi@0 219 public static Localizable localizableRUNTIME_PARSER_XML_READER(Object arg0) {
aoqi@0 220 return messageFactory.getMessage("runtime.parser.xmlReader", arg0);
aoqi@0 221 }
aoqi@0 222
aoqi@0 223 /**
aoqi@0 224 * error parsing runtime descriptor: {0}
aoqi@0 225 *
aoqi@0 226 */
aoqi@0 227 public static String RUNTIME_PARSER_XML_READER(Object arg0) {
aoqi@0 228 return localizer.localize(localizableRUNTIME_PARSER_XML_READER(arg0));
aoqi@0 229 }
aoqi@0 230
aoqi@0 231 public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) {
aoqi@0 232 return messageFactory.getMessage("runtime.parser.wsdl.incorrectserviceport", arg0, arg1, arg2);
aoqi@0 233 }
aoqi@0 234
aoqi@0 235 /**
aoqi@0 236 * could not get binding from WSDL! service: {0} or port {1} not found in the WSDL {2}.
aoqi@0 237 * It could be because service and port names do not match WSDL''s wsdl:service and wsdl:port names:
aoqi@0 238 * 1. service and port names are not there in deployment descriptor OR
aoqi@0 239 * 2. Either there is a typo in deployment descriptor''s service and port names OR
aoqi@0 240 * 3. The computed names from @WebService do not match wsdl:service and wsdl:port names
aoqi@0 241 * Suggest doing the following:
aoqi@0 242 * 1. Add/Correct entries for service and port names in deployment descriptor OR
aoqi@0 243 * 2. Specify targetNamespace, serviceName, portName in @WebService on the endpoint class
aoqi@0 244 *
aoqi@0 245 */
aoqi@0 246 public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) {
aoqi@0 247 return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(arg0, arg1, arg2));
aoqi@0 248 }
aoqi@0 249
aoqi@0 250 public static Localizable localizableSERVER_RT_ERR(Object arg0) {
aoqi@0 251 return messageFactory.getMessage("server.rt.err", arg0);
aoqi@0 252 }
aoqi@0 253
aoqi@0 254 /**
aoqi@0 255 * Server Runtime Error: {0}
aoqi@0 256 *
aoqi@0 257 */
aoqi@0 258 public static String SERVER_RT_ERR(Object arg0) {
aoqi@0 259 return localizer.localize(localizableSERVER_RT_ERR(arg0));
aoqi@0 260 }
aoqi@0 261
aoqi@0 262 public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) {
aoqi@0 263 return messageFactory.getMessage("runtime.parser.invalidAttributeValue", arg0, arg1, arg2);
aoqi@0 264 }
aoqi@0 265
aoqi@0 266 /**
aoqi@0 267 * invalid value for attribute "{2}" of element "{1}" in runtime descriptor (line {0})
aoqi@0 268 *
aoqi@0 269 */
aoqi@0 270 public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) {
aoqi@0 271 return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1, arg2));
aoqi@0 272 }
aoqi@0 273
aoqi@0 274 public static Localizable localizableNO_CURRENT_PACKET() {
aoqi@0 275 return messageFactory.getMessage("no.current.packet");
aoqi@0 276 }
aoqi@0 277
aoqi@0 278 /**
aoqi@0 279 * This thread is not currently processing any web service request.
aoqi@0 280 *
aoqi@0 281 */
aoqi@0 282 public static String NO_CURRENT_PACKET() {
aoqi@0 283 return localizer.localize(localizableNO_CURRENT_PACKET());
aoqi@0 284 }
aoqi@0 285
aoqi@0 286 public static Localizable localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) {
aoqi@0 287 return messageFactory.getMessage("runtime.parser.unexpectedContent", arg0);
aoqi@0 288 }
aoqi@0 289
aoqi@0 290 /**
aoqi@0 291 * unexpected content in runtime descriptor (line {0})
aoqi@0 292 *
aoqi@0 293 */
aoqi@0 294 public static String RUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) {
aoqi@0 295 return localizer.localize(localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(arg0));
aoqi@0 296 }
aoqi@0 297
aoqi@0 298 public static Localizable localizableSTATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) {
aoqi@0 299 return messageFactory.getMessage("stateful.cookie.header.required", arg0);
aoqi@0 300 }
aoqi@0 301
aoqi@0 302 /**
aoqi@0 303 * This is a stateful web service and {0} header is required.
aoqi@0 304 *
aoqi@0 305 */
aoqi@0 306 public static String STATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) {
aoqi@0 307 return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_REQUIRED(arg0));
aoqi@0 308 }
aoqi@0 309
aoqi@0 310 public static Localizable localizableNULL_IMPLEMENTOR() {
aoqi@0 311 return messageFactory.getMessage("null.implementor");
aoqi@0 312 }
aoqi@0 313
aoqi@0 314 /**
aoqi@0 315 * Implementor cannot be null
aoqi@0 316 *
aoqi@0 317 */
aoqi@0 318 public static String NULL_IMPLEMENTOR() {
aoqi@0 319 return localizer.localize(localizableNULL_IMPLEMENTOR());
aoqi@0 320 }
aoqi@0 321
aoqi@0 322 public static Localizable localizableRUNTIME_PARSER_WSDL(Object arg0) {
aoqi@0 323 return messageFactory.getMessage("runtime.parser.wsdl", arg0);
aoqi@0 324 }
aoqi@0 325
aoqi@0 326 /**
aoqi@0 327 * exception during WSDL parsing: {0}
aoqi@0 328 *
aoqi@0 329 */
aoqi@0 330 public static String RUNTIME_PARSER_WSDL(Object arg0) {
aoqi@0 331 return localizer.localize(localizableRUNTIME_PARSER_WSDL(arg0));
aoqi@0 332 }
aoqi@0 333
aoqi@0 334 public static Localizable localizableSOAPENCODER_ERR() {
aoqi@0 335 return messageFactory.getMessage("soapencoder.err");
aoqi@0 336 }
aoqi@0 337
aoqi@0 338 /**
aoqi@0 339 * Error in encoding SOAP Message
aoqi@0 340 *
aoqi@0 341 */
aoqi@0 342 public static String SOAPENCODER_ERR() {
aoqi@0 343 return localizer.localize(localizableSOAPENCODER_ERR());
aoqi@0 344 }
aoqi@0 345
aoqi@0 346 public static Localizable localizableWSDL_REQUIRED() {
aoqi@0 347 return messageFactory.getMessage("wsdl.required");
aoqi@0 348 }
aoqi@0 349
aoqi@0 350 /**
aoqi@0 351 * wsdl is required
aoqi@0 352 *
aoqi@0 353 */
aoqi@0 354 public static String WSDL_REQUIRED() {
aoqi@0 355 return localizer.localize(localizableWSDL_REQUIRED());
aoqi@0 356 }
aoqi@0 357
aoqi@0 358 public static Localizable localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) {
aoqi@0 359 return messageFactory.getMessage("runtime.parser.wsdl.noservice.in.wsdlmodel", arg0);
aoqi@0 360 }
aoqi@0 361
aoqi@0 362 /**
aoqi@0 363 * There is an error in processing the WSDL {0} and no valid services are found.
aoqi@0 364 *
aoqi@0 365 */
aoqi@0 366 public static String RUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) {
aoqi@0 367 return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(arg0));
aoqi@0 368 }
aoqi@0 369
aoqi@0 370 public static Localizable localizablePORT_NAME_REQUIRED() {
aoqi@0 371 return messageFactory.getMessage("port.name.required");
aoqi@0 372 }
aoqi@0 373
aoqi@0 374 /**
aoqi@0 375 * Port QName is not found
aoqi@0 376 *
aoqi@0 377 */
aoqi@0 378 public static String PORT_NAME_REQUIRED() {
aoqi@0 379 return localizer.localize(localizablePORT_NAME_REQUIRED());
aoqi@0 380 }
aoqi@0 381
aoqi@0 382 public static Localizable localizableWRONG_TNS_FOR_PORT(Object arg0) {
aoqi@0 383 return messageFactory.getMessage("wrong.tns.for.port", arg0);
aoqi@0 384 }
aoqi@0 385
aoqi@0 386 /**
aoqi@0 387 * Port namespace {0} doesn't match Service namespace {1}
aoqi@0 388 *
aoqi@0 389 */
aoqi@0 390 public static String WRONG_TNS_FOR_PORT(Object arg0) {
aoqi@0 391 return localizer.localize(localizableWRONG_TNS_FOR_PORT(arg0));
aoqi@0 392 }
aoqi@0 393
aoqi@0 394 public static Localizable localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) {
aoqi@0 395 return messageFactory.getMessage("runtime.parser.wsdl.multiplebinding", arg0, arg1, arg2);
aoqi@0 396 }
aoqi@0 397
aoqi@0 398 /**
aoqi@0 399 * multiple bindings found for binding ID {0} for service {1} in WSDL {2}
aoqi@0 400 *
aoqi@0 401 */
aoqi@0 402 public static String RUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) {
aoqi@0 403 return localizer.localize(localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(arg0, arg1, arg2));
aoqi@0 404 }
aoqi@0 405
aoqi@0 406 public static Localizable localizableNOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) {
aoqi@0 407 return messageFactory.getMessage("not.know.HttpContext.type", arg0, arg1, arg2);
aoqi@0 408 }
aoqi@0 409
aoqi@0 410 /**
aoqi@0 411 * Doesn''t support Endpoint.publish({0}). Known context types are {1}, and {2}
aoqi@0 412 *
aoqi@0 413 */
aoqi@0 414 public static String NOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) {
aoqi@0 415 return localizer.localize(localizableNOT_KNOW_HTTP_CONTEXT_TYPE(arg0, arg1, arg2));
aoqi@0 416 }
aoqi@0 417
aoqi@0 418 public static Localizable localizableNON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) {
aoqi@0 419 return messageFactory.getMessage("non.unique.dispatch.qname", arg0, arg1);
aoqi@0 420 }
aoqi@0 421
aoqi@0 422 /**
aoqi@0 423 * 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.
aoqi@0 424 *
aoqi@0 425 */
aoqi@0 426 public static String NON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) {
aoqi@0 427 return localizer.localize(localizableNON_UNIQUE_DISPATCH_QNAME(arg0, arg1));
aoqi@0 428 }
aoqi@0 429
aoqi@0 430 public static Localizable localizableALREADY_HTTP_SERVER(Object arg0) {
aoqi@0 431 return messageFactory.getMessage("already.http.server", arg0);
aoqi@0 432 }
aoqi@0 433
aoqi@0 434 /**
aoqi@0 435 * There is already a HTTP server at : {0}# {0} - probably URL/port of a server
aoqi@0 436 *
aoqi@0 437 */
aoqi@0 438 public static String ALREADY_HTTP_SERVER(Object arg0) {
aoqi@0 439 return localizer.localize(localizableALREADY_HTTP_SERVER(arg0));
aoqi@0 440 }
aoqi@0 441
aoqi@0 442 public static Localizable localizableCAN_NOT_GENERATE_WSDL(Object arg0) {
aoqi@0 443 return messageFactory.getMessage("can.not.generate.wsdl", arg0);
aoqi@0 444 }
aoqi@0 445
aoqi@0 446 /**
aoqi@0 447 * Cannot generate WSDL for binding "{0}"
aoqi@0 448 *
aoqi@0 449 */
aoqi@0 450 public static String CAN_NOT_GENERATE_WSDL(Object arg0) {
aoqi@0 451 return localizer.localize(localizableCAN_NOT_GENERATE_WSDL(arg0));
aoqi@0 452 }
aoqi@0 453
aoqi@0 454 public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) {
aoqi@0 455 return messageFactory.getMessage("runtime.parser.invalid.attribute.value", arg0, arg1);
aoqi@0 456 }
aoqi@0 457
aoqi@0 458 /**
aoqi@0 459 * invalid attribute value "{1}" in runtime descriptor (line {0})
aoqi@0 460 *
aoqi@0 461 */
aoqi@0 462 public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) {
aoqi@0 463 return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1));
aoqi@0 464 }
aoqi@0 465
aoqi@0 466 public static Localizable localizableRUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) {
aoqi@0 467 return messageFactory.getMessage("runtime.parser.wrong.element", arg0, arg1, arg2);
aoqi@0 468 }
aoqi@0 469
aoqi@0 470 /**
aoqi@0 471 * found element "{1}", expected "{2}" in runtime descriptor (line {0})
aoqi@0 472 *
aoqi@0 473 */
aoqi@0 474 public static String RUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) {
aoqi@0 475 return localizer.localize(localizableRUNTIME_PARSER_WRONG_ELEMENT(arg0, arg1, arg2));
aoqi@0 476 }
aoqi@0 477
aoqi@0 478 public static Localizable localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) {
aoqi@0 479 return messageFactory.getMessage("runtimemodeler.invalidannotationOnImpl", arg0, arg1, arg2);
aoqi@0 480 }
aoqi@0 481
aoqi@0 482 /**
aoqi@0 483 * 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}.
aoqi@0 484 *
aoqi@0 485 */
aoqi@0 486 public static String RUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) {
aoqi@0 487 return localizer.localize(localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(arg0, arg1, arg2));
aoqi@0 488 }
aoqi@0 489
aoqi@0 490 public static Localizable localizableSERVICE_NAME_REQUIRED() {
aoqi@0 491 return messageFactory.getMessage("service.name.required");
aoqi@0 492 }
aoqi@0 493
aoqi@0 494 /**
aoqi@0 495 * Service QName is not found
aoqi@0 496 *
aoqi@0 497 */
aoqi@0 498 public static String SERVICE_NAME_REQUIRED() {
aoqi@0 499 return localizer.localize(localizableSERVICE_NAME_REQUIRED());
aoqi@0 500 }
aoqi@0 501
aoqi@0 502 public static Localizable localizablePROVIDER_NOT_PARAMETERIZED(Object arg0) {
aoqi@0 503 return messageFactory.getMessage("provider.not.parameterized", arg0);
aoqi@0 504 }
aoqi@0 505
aoqi@0 506 /**
aoqi@0 507 * "{0}" implements Provider but doesn't specify the type parameter
aoqi@0 508 *
aoqi@0 509 */
aoqi@0 510 public static String PROVIDER_NOT_PARAMETERIZED(Object arg0) {
aoqi@0 511 return localizer.localize(localizablePROVIDER_NOT_PARAMETERIZED(arg0));
aoqi@0 512 }
aoqi@0 513
aoqi@0 514 public static Localizable localizableRUNTIME_WSDL_PATCHER() {
aoqi@0 515 return messageFactory.getMessage("runtime.wsdl.patcher");
aoqi@0 516 }
aoqi@0 517
aoqi@0 518 /**
aoqi@0 519 * error while patching WSDL related document
aoqi@0 520 *
aoqi@0 521 */
aoqi@0 522 public static String RUNTIME_WSDL_PATCHER() {
aoqi@0 523 return localizer.localize(localizableRUNTIME_WSDL_PATCHER());
aoqi@0 524 }
aoqi@0 525
aoqi@0 526 public static Localizable localizableRUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) {
aoqi@0 527 return messageFactory.getMessage("runtime.saxparser.exception", arg0, arg1);
aoqi@0 528 }
aoqi@0 529
aoqi@0 530 /**
aoqi@0 531 * {0}
aoqi@0 532 * {1}
aoqi@0 533 *
aoqi@0 534 */
aoqi@0 535 public static String RUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) {
aoqi@0 536 return localizer.localize(localizableRUNTIME_SAXPARSER_EXCEPTION(arg0, arg1));
aoqi@0 537 }
aoqi@0 538
aoqi@0 539 public static Localizable localizableWRONG_PARAMETER_TYPE(Object arg0) {
aoqi@0 540 return messageFactory.getMessage("wrong.parameter.type", arg0);
aoqi@0 541 }
aoqi@0 542
aoqi@0 543 /**
aoqi@0 544 * Incorrect argument types for method "{0}"
aoqi@0 545 *
aoqi@0 546 */
aoqi@0 547 public static String WRONG_PARAMETER_TYPE(Object arg0) {
aoqi@0 548 return localizer.localize(localizableWRONG_PARAMETER_TYPE(arg0));
aoqi@0 549 }
aoqi@0 550
aoqi@0 551 public static Localizable localizableRUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) {
aoqi@0 552 return messageFactory.getMessage("runtime.parser.wsdl.not.found", arg0);
aoqi@0 553 }
aoqi@0 554
aoqi@0 555 /**
aoqi@0 556 * {0} is not found in the WAR file. Package it in the WAR file or correct it in sun-jaxws.xml.
aoqi@0 557 *
aoqi@0 558 */
aoqi@0 559 public static String RUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) {
aoqi@0 560 return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOT_FOUND(arg0));
aoqi@0 561 }
aoqi@0 562
aoqi@0 563 public static Localizable localizableRUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) {
aoqi@0 564 return messageFactory.getMessage("runtime.parser.classNotFound", arg0);
aoqi@0 565 }
aoqi@0 566
aoqi@0 567 /**
aoqi@0 568 * class not found in runtime descriptor: {0}
aoqi@0 569 *
aoqi@0 570 */
aoqi@0 571 public static String RUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) {
aoqi@0 572 return localizer.localize(localizableRUNTIME_PARSER_CLASS_NOT_FOUND(arg0));
aoqi@0 573 }
aoqi@0 574
aoqi@0 575 public static Localizable localizableUNSUPPORTED_CHARSET(Object arg0) {
aoqi@0 576 return messageFactory.getMessage("unsupported.charset", arg0);
aoqi@0 577 }
aoqi@0 578
aoqi@0 579 /**
aoqi@0 580 * Unsupported charset "{0}" in the received message''s Content-Type
aoqi@0 581 *
aoqi@0 582 */
aoqi@0 583 public static String UNSUPPORTED_CHARSET(Object arg0) {
aoqi@0 584 return localizer.localize(localizableUNSUPPORTED_CHARSET(arg0));
aoqi@0 585 }
aoqi@0 586
aoqi@0 587 public static Localizable localizableSTATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) {
aoqi@0 588 return messageFactory.getMessage("static.resource.injection.only", arg0, arg1);
aoqi@0 589 }
aoqi@0 590
aoqi@0 591 /**
aoqi@0 592 * Static resource {0} cannot be injected to non-static "{1}"
aoqi@0 593 *
aoqi@0 594 */
aoqi@0 595 public static String STATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) {
aoqi@0 596 return localizer.localize(localizableSTATIC_RESOURCE_INJECTION_ONLY(arg0, arg1));
aoqi@0 597 }
aoqi@0 598
aoqi@0 599 public static Localizable localizableNOT_ZERO_PARAMETERS(Object arg0) {
aoqi@0 600 return messageFactory.getMessage("not.zero.parameters", arg0);
aoqi@0 601 }
aoqi@0 602
aoqi@0 603 /**
aoqi@0 604 * Method "{0}" shouldn''t have any arguments
aoqi@0 605 *
aoqi@0 606 */
aoqi@0 607 public static String NOT_ZERO_PARAMETERS(Object arg0) {
aoqi@0 608 return localizer.localize(localizableNOT_ZERO_PARAMETERS(arg0));
aoqi@0 609 }
aoqi@0 610
aoqi@0 611 public static Localizable localizableDUPLICATE_PRIMARY_WSDL(Object arg0) {
aoqi@0 612 return messageFactory.getMessage("duplicate.primary.wsdl", arg0);
aoqi@0 613 }
aoqi@0 614
aoqi@0 615 /**
aoqi@0 616 * Metadata has more than one WSDL that has Service definition for the endpoint. WSDL={0} is one such WSDL.
aoqi@0 617 *
aoqi@0 618 */
aoqi@0 619 public static String DUPLICATE_PRIMARY_WSDL(Object arg0) {
aoqi@0 620 return localizer.localize(localizableDUPLICATE_PRIMARY_WSDL(arg0));
aoqi@0 621 }
aoqi@0 622
aoqi@0 623 public static Localizable localizableDUPLICATE_ABSTRACT_WSDL(Object arg0) {
aoqi@0 624 return messageFactory.getMessage("duplicate.abstract.wsdl", arg0);
aoqi@0 625 }
aoqi@0 626
aoqi@0 627 /**
aoqi@0 628 * Metadata has more than one WSDL that has PortType definition for the endpoint. WSDL={0} is one such WSDL.
aoqi@0 629 *
aoqi@0 630 */
aoqi@0 631 public static String DUPLICATE_ABSTRACT_WSDL(Object arg0) {
aoqi@0 632 return localizer.localize(localizableDUPLICATE_ABSTRACT_WSDL(arg0));
aoqi@0 633 }
aoqi@0 634
aoqi@0 635 public static Localizable localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) {
aoqi@0 636 return messageFactory.getMessage("stateful.invalid.webservice.context", arg0);
aoqi@0 637 }
aoqi@0 638
aoqi@0 639 /**
aoqi@0 640 * Not a WebServiceContext from JAX-WS RI: {0}
aoqi@0 641 *
aoqi@0 642 */
aoqi@0 643 public static String STATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) {
aoqi@0 644 return localizer.localize(localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(arg0));
aoqi@0 645 }
aoqi@0 646
aoqi@0 647 public static Localizable localizableRUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) {
aoqi@0 648 return messageFactory.getMessage("runtime.parser.invalidElement", arg0, arg1);
aoqi@0 649 }
aoqi@0 650
aoqi@0 651 /**
aoqi@0 652 * invalid element "{1}" in runtime descriptor (line {0})
aoqi@0 653 *
aoqi@0 654 */
aoqi@0 655 public static String RUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) {
aoqi@0 656 return localizer.localize(localizableRUNTIME_PARSER_INVALID_ELEMENT(arg0, arg1));
aoqi@0 657 }
aoqi@0 658
aoqi@0 659 public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) {
aoqi@0 660 return messageFactory.getMessage("runtime.parser.missing.attribute", arg0, arg1, arg2);
aoqi@0 661 }
aoqi@0 662
aoqi@0 663 /**
aoqi@0 664 * missing attribute "{2}" in element "{1}" of runtime descriptor (line {0})
aoqi@0 665 *
aoqi@0 666 */
aoqi@0 667 public static String RUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) {
aoqi@0 668 return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(arg0, arg1, arg2));
aoqi@0 669 }
aoqi@0 670
aoqi@0 671 public static Localizable localizableWRONG_FIELD_TYPE(Object arg0) {
aoqi@0 672 return messageFactory.getMessage("wrong.field.type", arg0);
aoqi@0 673 }
aoqi@0 674
aoqi@0 675 /**
aoqi@0 676 * Incorrect type for field "{0}"
aoqi@0 677 *
aoqi@0 678 */
aoqi@0 679 public static String WRONG_FIELD_TYPE(Object arg0) {
aoqi@0 680 return localizer.localize(localizableWRONG_FIELD_TYPE(arg0));
aoqi@0 681 }
aoqi@0 682
aoqi@0 683 public static Localizable localizableDUPLICATE_PORT_KNOWN_HEADER(Object arg0) {
aoqi@0 684 return messageFactory.getMessage("duplicate.portKnownHeader", arg0);
aoqi@0 685 }
aoqi@0 686
aoqi@0 687 /**
aoqi@0 688 * Received SOAP message contains duplicate header: {0} for a bound parameter
aoqi@0 689 *
aoqi@0 690 */
aoqi@0 691 public static String DUPLICATE_PORT_KNOWN_HEADER(Object arg0) {
aoqi@0 692 return localizer.localize(localizableDUPLICATE_PORT_KNOWN_HEADER(arg0));
aoqi@0 693 }
aoqi@0 694
aoqi@0 695 public static Localizable localizableUNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) {
aoqi@0 696 return messageFactory.getMessage("unsupported.contentType", arg0, arg1);
aoqi@0 697 }
aoqi@0 698
aoqi@0 699 /**
aoqi@0 700 * Unsupported Content-Type: {0} Supported ones are: {1}
aoqi@0 701 *
aoqi@0 702 */
aoqi@0 703 public static String UNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) {
aoqi@0 704 return localizer.localize(localizableUNSUPPORTED_CONTENT_TYPE(arg0, arg1));
aoqi@0 705 }
aoqi@0 706
aoqi@0 707 public static Localizable localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) {
aoqi@0 708 return messageFactory.getMessage("failed.to.instantiate.instanceResolver", arg0, arg1, arg2);
aoqi@0 709 }
aoqi@0 710
aoqi@0 711 /**
aoqi@0 712 * Unable to instantiate {0} (which is specified in {1} on {2})
aoqi@0 713 *
aoqi@0 714 */
aoqi@0 715 public static String FAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) {
aoqi@0 716 return localizer.localize(localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(arg0, arg1, arg2));
aoqi@0 717 }
aoqi@0 718
aoqi@0 719 public static Localizable localizableDD_MTOM_CONFLICT(Object arg0, Object arg1) {
aoqi@0 720 return messageFactory.getMessage("dd.mtom.conflict", arg0, arg1);
aoqi@0 721 }
aoqi@0 722
aoqi@0 723 /**
aoqi@0 724 * Error in Deployment Descriptor : MTOM Configuration in binding {0} conflicts with enable-mtom attribute value {1}
aoqi@0 725 *
aoqi@0 726 */
aoqi@0 727 public static String DD_MTOM_CONFLICT(Object arg0, Object arg1) {
aoqi@0 728 return localizer.localize(localizableDD_MTOM_CONFLICT(arg0, arg1));
aoqi@0 729 }
aoqi@0 730
aoqi@0 731 }

mercurial