1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/resources/ServerMessages.java Wed Apr 27 01:27:09 2016 +0800 1.3 @@ -0,0 +1,731 @@ 1.4 +/* 1.5 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 + 1.29 +package com.sun.xml.internal.ws.resources; 1.30 + 1.31 +import com.sun.istack.internal.localization.Localizable; 1.32 +import com.sun.istack.internal.localization.LocalizableMessageFactory; 1.33 +import com.sun.istack.internal.localization.Localizer; 1.34 + 1.35 + 1.36 +/** 1.37 + * Defines string formatting method for each constant in the resource file 1.38 + * 1.39 + */ 1.40 +public final class ServerMessages { 1.41 + 1.42 + private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.server"); 1.43 + private final static Localizer localizer = new Localizer(); 1.44 + 1.45 + public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) { 1.46 + return messageFactory.getMessage("runtime.parser.wsdl.incorrectservice", arg0, arg1); 1.47 + } 1.48 + 1.49 + /** 1.50 + * could not get binding from WSDL! service: {0} not found in the WSDL {1}. 1.51 + * It could be because service name does not match WSDL''s wsdl:service name: 1.52 + * 1. service name is not there in deployment descriptor OR 1.53 + * 2. Either there is a typo in deployment descriptor''s service name OR 1.54 + * 3. The computed names from @WebService do not match wsdl:service name 1.55 + * OR 1.56 + * 1. There is an error while parsing the wsdl and Service with name {0} is not found in the WSDLModel. 1.57 + * Suggest doing the following: 1.58 + * 1. Add/Correct entries for service name in deployment descriptor OR 1.59 + * 2. Specify targetNamespace, serviceName in @WebService on the endpoint class 1.60 + * 1.61 + */ 1.62 + public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICE(Object arg0, Object arg1) { 1.63 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICE(arg0, arg1)); 1.64 + } 1.65 + 1.66 + public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() { 1.67 + return messageFactory.getMessage("runtime.parser.missing.attribute.no.line"); 1.68 + } 1.69 + 1.70 + /** 1.71 + * missing attribute "{2}" in element "{1}" of runtime descriptor 1.72 + * 1.73 + */ 1.74 + public static String RUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE() { 1.75 + return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE_NO_LINE()); 1.76 + } 1.77 + 1.78 + public static Localizable localizableSTATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) { 1.79 + return messageFactory.getMessage("stateful.cookie.header.incorrect", arg0, arg1); 1.80 + } 1.81 + 1.82 + /** 1.83 + * Invalid/expired {0} header value: {1} 1.84 + * 1.85 + */ 1.86 + public static String STATEFUL_COOKIE_HEADER_INCORRECT(Object arg0, Object arg1) { 1.87 + return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_INCORRECT(arg0, arg1)); 1.88 + } 1.89 + 1.90 + public static Localizable localizableNOT_IMPLEMENT_PROVIDER(Object arg0) { 1.91 + return messageFactory.getMessage("not.implement.provider", arg0); 1.92 + } 1.93 + 1.94 + /** 1.95 + * "{0}" doesn't implement Provider 1.96 + * 1.97 + */ 1.98 + public static String NOT_IMPLEMENT_PROVIDER(Object arg0) { 1.99 + return localizer.localize(localizableNOT_IMPLEMENT_PROVIDER(arg0)); 1.100 + } 1.101 + 1.102 + public static Localizable localizableSTATEFUL_REQURES_ADDRESSING(Object arg0) { 1.103 + return messageFactory.getMessage("stateful.requres.addressing", arg0); 1.104 + } 1.105 + 1.106 + /** 1.107 + * Stateful web service {0} requires the WS-Addressing support to be enabled. Perhaps you are missing @Addressing 1.108 + * 1.109 + */ 1.110 + public static String STATEFUL_REQURES_ADDRESSING(Object arg0) { 1.111 + return localizer.localize(localizableSTATEFUL_REQURES_ADDRESSING(arg0)); 1.112 + } 1.113 + 1.114 + public static Localizable localizableSOAPDECODER_ERR() { 1.115 + return messageFactory.getMessage("soapdecoder.err"); 1.116 + } 1.117 + 1.118 + /** 1.119 + * Error in decoding SOAP Message 1.120 + * 1.121 + */ 1.122 + public static String SOAPDECODER_ERR() { 1.123 + return localizer.localize(localizableSOAPDECODER_ERR()); 1.124 + } 1.125 + 1.126 + public static Localizable localizableGENERATE_NON_STANDARD_WSDL() { 1.127 + return messageFactory.getMessage("generate.non.standard.wsdl"); 1.128 + } 1.129 + 1.130 + /** 1.131 + * Generating non-standard WSDL for the specified binding 1.132 + * 1.133 + */ 1.134 + public static String GENERATE_NON_STANDARD_WSDL() { 1.135 + return localizer.localize(localizableGENERATE_NON_STANDARD_WSDL()); 1.136 + } 1.137 + 1.138 + public static Localizable localizableDISPATCH_CANNOT_FIND_METHOD(Object arg0) { 1.139 + return messageFactory.getMessage("dispatch.cannotFindMethod", arg0); 1.140 + } 1.141 + 1.142 + /** 1.143 + * Cannot find dispatch method for {0} 1.144 + * 1.145 + */ 1.146 + public static String DISPATCH_CANNOT_FIND_METHOD(Object arg0) { 1.147 + return localizer.localize(localizableDISPATCH_CANNOT_FIND_METHOD(arg0)); 1.148 + } 1.149 + 1.150 + public static Localizable localizableNO_CONTENT_TYPE() { 1.151 + return messageFactory.getMessage("no.contentType"); 1.152 + } 1.153 + 1.154 + /** 1.155 + * Request doesn't have a Content-Type 1.156 + * 1.157 + */ 1.158 + public static String NO_CONTENT_TYPE() { 1.159 + return localizer.localize(localizableNO_CONTENT_TYPE()); 1.160 + } 1.161 + 1.162 + public static Localizable localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER() { 1.163 + return messageFactory.getMessage("runtime.parser.invalidVersionNumber"); 1.164 + } 1.165 + 1.166 + /** 1.167 + * unsupported runtime descriptor version: {2} 1.168 + * 1.169 + */ 1.170 + public static String RUNTIME_PARSER_INVALID_VERSION_NUMBER() { 1.171 + return localizer.localize(localizableRUNTIME_PARSER_INVALID_VERSION_NUMBER()); 1.172 + } 1.173 + 1.174 + public static Localizable localizablePROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) { 1.175 + return messageFactory.getMessage("provider.invalid.parameterType", arg0, arg1); 1.176 + } 1.177 + 1.178 + /** 1.179 + * "{0}" implements Provider but its type parameter {1} is incorrect 1.180 + * 1.181 + */ 1.182 + public static String PROVIDER_INVALID_PARAMETER_TYPE(Object arg0, Object arg1) { 1.183 + return localizer.localize(localizablePROVIDER_INVALID_PARAMETER_TYPE(arg0, arg1)); 1.184 + } 1.185 + 1.186 + public static Localizable localizableWRONG_NO_PARAMETERS(Object arg0) { 1.187 + return messageFactory.getMessage("wrong.no.parameters", arg0); 1.188 + } 1.189 + 1.190 + /** 1.191 + * Incorrect no of arguments for method "{0}" 1.192 + * 1.193 + */ 1.194 + public static String WRONG_NO_PARAMETERS(Object arg0) { 1.195 + return localizer.localize(localizableWRONG_NO_PARAMETERS(arg0)); 1.196 + } 1.197 + 1.198 + public static Localizable localizableANNOTATION_ONLY_ONCE(Object arg0) { 1.199 + return messageFactory.getMessage("annotation.only.once", arg0); 1.200 + } 1.201 + 1.202 + /** 1.203 + * Only one method should have the annotation "{0}" 1.204 + * 1.205 + */ 1.206 + public static String ANNOTATION_ONLY_ONCE(Object arg0) { 1.207 + return localizer.localize(localizableANNOTATION_ONLY_ONCE(arg0)); 1.208 + } 1.209 + 1.210 + public static Localizable localizableALREADY_HTTPS_SERVER(Object arg0) { 1.211 + return messageFactory.getMessage("already.https.server", arg0); 1.212 + } 1.213 + 1.214 + /** 1.215 + * There is already a HTTPS server at : {0} 1.216 + * 1.217 + */ 1.218 + public static String ALREADY_HTTPS_SERVER(Object arg0) { 1.219 + return localizer.localize(localizableALREADY_HTTPS_SERVER(arg0)); 1.220 + } 1.221 + 1.222 + public static Localizable localizableRUNTIME_PARSER_XML_READER(Object arg0) { 1.223 + return messageFactory.getMessage("runtime.parser.xmlReader", arg0); 1.224 + } 1.225 + 1.226 + /** 1.227 + * error parsing runtime descriptor: {0} 1.228 + * 1.229 + */ 1.230 + public static String RUNTIME_PARSER_XML_READER(Object arg0) { 1.231 + return localizer.localize(localizableRUNTIME_PARSER_XML_READER(arg0)); 1.232 + } 1.233 + 1.234 + public static Localizable localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) { 1.235 + return messageFactory.getMessage("runtime.parser.wsdl.incorrectserviceport", arg0, arg1, arg2); 1.236 + } 1.237 + 1.238 + /** 1.239 + * could not get binding from WSDL! service: {0} or port {1} not found in the WSDL {2}. 1.240 + * It could be because service and port names do not match WSDL''s wsdl:service and wsdl:port names: 1.241 + * 1. service and port names are not there in deployment descriptor OR 1.242 + * 2. Either there is a typo in deployment descriptor''s service and port names OR 1.243 + * 3. The computed names from @WebService do not match wsdl:service and wsdl:port names 1.244 + * Suggest doing the following: 1.245 + * 1. Add/Correct entries for service and port names in deployment descriptor OR 1.246 + * 2. Specify targetNamespace, serviceName, portName in @WebService on the endpoint class 1.247 + * 1.248 + */ 1.249 + public static String RUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(Object arg0, Object arg1, Object arg2) { 1.250 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_INCORRECTSERVICEPORT(arg0, arg1, arg2)); 1.251 + } 1.252 + 1.253 + public static Localizable localizableSERVER_RT_ERR(Object arg0) { 1.254 + return messageFactory.getMessage("server.rt.err", arg0); 1.255 + } 1.256 + 1.257 + /** 1.258 + * Server Runtime Error: {0} 1.259 + * 1.260 + */ 1.261 + public static String SERVER_RT_ERR(Object arg0) { 1.262 + return localizer.localize(localizableSERVER_RT_ERR(arg0)); 1.263 + } 1.264 + 1.265 + public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) { 1.266 + return messageFactory.getMessage("runtime.parser.invalidAttributeValue", arg0, arg1, arg2); 1.267 + } 1.268 + 1.269 + /** 1.270 + * invalid value for attribute "{2}" of element "{1}" in runtime descriptor (line {0}) 1.271 + * 1.272 + */ 1.273 + public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1, Object arg2) { 1.274 + return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1, arg2)); 1.275 + } 1.276 + 1.277 + public static Localizable localizableNO_CURRENT_PACKET() { 1.278 + return messageFactory.getMessage("no.current.packet"); 1.279 + } 1.280 + 1.281 + /** 1.282 + * This thread is not currently processing any web service request. 1.283 + * 1.284 + */ 1.285 + public static String NO_CURRENT_PACKET() { 1.286 + return localizer.localize(localizableNO_CURRENT_PACKET()); 1.287 + } 1.288 + 1.289 + public static Localizable localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) { 1.290 + return messageFactory.getMessage("runtime.parser.unexpectedContent", arg0); 1.291 + } 1.292 + 1.293 + /** 1.294 + * unexpected content in runtime descriptor (line {0}) 1.295 + * 1.296 + */ 1.297 + public static String RUNTIME_PARSER_UNEXPECTED_CONTENT(Object arg0) { 1.298 + return localizer.localize(localizableRUNTIME_PARSER_UNEXPECTED_CONTENT(arg0)); 1.299 + } 1.300 + 1.301 + public static Localizable localizableSTATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) { 1.302 + return messageFactory.getMessage("stateful.cookie.header.required", arg0); 1.303 + } 1.304 + 1.305 + /** 1.306 + * This is a stateful web service and {0} header is required. 1.307 + * 1.308 + */ 1.309 + public static String STATEFUL_COOKIE_HEADER_REQUIRED(Object arg0) { 1.310 + return localizer.localize(localizableSTATEFUL_COOKIE_HEADER_REQUIRED(arg0)); 1.311 + } 1.312 + 1.313 + public static Localizable localizableNULL_IMPLEMENTOR() { 1.314 + return messageFactory.getMessage("null.implementor"); 1.315 + } 1.316 + 1.317 + /** 1.318 + * Implementor cannot be null 1.319 + * 1.320 + */ 1.321 + public static String NULL_IMPLEMENTOR() { 1.322 + return localizer.localize(localizableNULL_IMPLEMENTOR()); 1.323 + } 1.324 + 1.325 + public static Localizable localizableRUNTIME_PARSER_WSDL(Object arg0) { 1.326 + return messageFactory.getMessage("runtime.parser.wsdl", arg0); 1.327 + } 1.328 + 1.329 + /** 1.330 + * exception during WSDL parsing: {0} 1.331 + * 1.332 + */ 1.333 + public static String RUNTIME_PARSER_WSDL(Object arg0) { 1.334 + return localizer.localize(localizableRUNTIME_PARSER_WSDL(arg0)); 1.335 + } 1.336 + 1.337 + public static Localizable localizableSOAPENCODER_ERR() { 1.338 + return messageFactory.getMessage("soapencoder.err"); 1.339 + } 1.340 + 1.341 + /** 1.342 + * Error in encoding SOAP Message 1.343 + * 1.344 + */ 1.345 + public static String SOAPENCODER_ERR() { 1.346 + return localizer.localize(localizableSOAPENCODER_ERR()); 1.347 + } 1.348 + 1.349 + public static Localizable localizableWSDL_REQUIRED() { 1.350 + return messageFactory.getMessage("wsdl.required"); 1.351 + } 1.352 + 1.353 + /** 1.354 + * wsdl is required 1.355 + * 1.356 + */ 1.357 + public static String WSDL_REQUIRED() { 1.358 + return localizer.localize(localizableWSDL_REQUIRED()); 1.359 + } 1.360 + 1.361 + public static Localizable localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) { 1.362 + return messageFactory.getMessage("runtime.parser.wsdl.noservice.in.wsdlmodel", arg0); 1.363 + } 1.364 + 1.365 + /** 1.366 + * There is an error in processing the WSDL {0} and no valid services are found. 1.367 + * 1.368 + */ 1.369 + public static String RUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(Object arg0) { 1.370 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOSERVICE_IN_WSDLMODEL(arg0)); 1.371 + } 1.372 + 1.373 + public static Localizable localizablePORT_NAME_REQUIRED() { 1.374 + return messageFactory.getMessage("port.name.required"); 1.375 + } 1.376 + 1.377 + /** 1.378 + * Port QName is not found 1.379 + * 1.380 + */ 1.381 + public static String PORT_NAME_REQUIRED() { 1.382 + return localizer.localize(localizablePORT_NAME_REQUIRED()); 1.383 + } 1.384 + 1.385 + public static Localizable localizableWRONG_TNS_FOR_PORT(Object arg0) { 1.386 + return messageFactory.getMessage("wrong.tns.for.port", arg0); 1.387 + } 1.388 + 1.389 + /** 1.390 + * Port namespace {0} doesn't match Service namespace {1} 1.391 + * 1.392 + */ 1.393 + public static String WRONG_TNS_FOR_PORT(Object arg0) { 1.394 + return localizer.localize(localizableWRONG_TNS_FOR_PORT(arg0)); 1.395 + } 1.396 + 1.397 + public static Localizable localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) { 1.398 + return messageFactory.getMessage("runtime.parser.wsdl.multiplebinding", arg0, arg1, arg2); 1.399 + } 1.400 + 1.401 + /** 1.402 + * multiple bindings found for binding ID {0} for service {1} in WSDL {2} 1.403 + * 1.404 + */ 1.405 + public static String RUNTIME_PARSER_WSDL_MULTIPLEBINDING(Object arg0, Object arg1, Object arg2) { 1.406 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_MULTIPLEBINDING(arg0, arg1, arg2)); 1.407 + } 1.408 + 1.409 + public static Localizable localizableNOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) { 1.410 + return messageFactory.getMessage("not.know.HttpContext.type", arg0, arg1, arg2); 1.411 + } 1.412 + 1.413 + /** 1.414 + * Doesn''t support Endpoint.publish({0}). Known context types are {1}, and {2} 1.415 + * 1.416 + */ 1.417 + public static String NOT_KNOW_HTTP_CONTEXT_TYPE(Object arg0, Object arg1, Object arg2) { 1.418 + return localizer.localize(localizableNOT_KNOW_HTTP_CONTEXT_TYPE(arg0, arg1, arg2)); 1.419 + } 1.420 + 1.421 + public static Localizable localizableNON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) { 1.422 + return messageFactory.getMessage("non.unique.dispatch.qname", arg0, arg1); 1.423 + } 1.424 + 1.425 + /** 1.426 + * 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. 1.427 + * 1.428 + */ 1.429 + public static String NON_UNIQUE_DISPATCH_QNAME(Object arg0, Object arg1) { 1.430 + return localizer.localize(localizableNON_UNIQUE_DISPATCH_QNAME(arg0, arg1)); 1.431 + } 1.432 + 1.433 + public static Localizable localizableALREADY_HTTP_SERVER(Object arg0) { 1.434 + return messageFactory.getMessage("already.http.server", arg0); 1.435 + } 1.436 + 1.437 + /** 1.438 + * There is already a HTTP server at : {0}# {0} - probably URL/port of a server 1.439 + * 1.440 + */ 1.441 + public static String ALREADY_HTTP_SERVER(Object arg0) { 1.442 + return localizer.localize(localizableALREADY_HTTP_SERVER(arg0)); 1.443 + } 1.444 + 1.445 + public static Localizable localizableCAN_NOT_GENERATE_WSDL(Object arg0) { 1.446 + return messageFactory.getMessage("can.not.generate.wsdl", arg0); 1.447 + } 1.448 + 1.449 + /** 1.450 + * Cannot generate WSDL for binding "{0}" 1.451 + * 1.452 + */ 1.453 + public static String CAN_NOT_GENERATE_WSDL(Object arg0) { 1.454 + return localizer.localize(localizableCAN_NOT_GENERATE_WSDL(arg0)); 1.455 + } 1.456 + 1.457 + public static Localizable localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { 1.458 + return messageFactory.getMessage("runtime.parser.invalid.attribute.value", arg0, arg1); 1.459 + } 1.460 + 1.461 + /** 1.462 + * invalid attribute value "{1}" in runtime descriptor (line {0}) 1.463 + * 1.464 + */ 1.465 + public static String RUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(Object arg0, Object arg1) { 1.466 + return localizer.localize(localizableRUNTIME_PARSER_INVALID_ATTRIBUTE_VALUE(arg0, arg1)); 1.467 + } 1.468 + 1.469 + public static Localizable localizableRUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { 1.470 + return messageFactory.getMessage("runtime.parser.wrong.element", arg0, arg1, arg2); 1.471 + } 1.472 + 1.473 + /** 1.474 + * found element "{1}", expected "{2}" in runtime descriptor (line {0}) 1.475 + * 1.476 + */ 1.477 + public static String RUNTIME_PARSER_WRONG_ELEMENT(Object arg0, Object arg1, Object arg2) { 1.478 + return localizer.localize(localizableRUNTIME_PARSER_WRONG_ELEMENT(arg0, arg1, arg2)); 1.479 + } 1.480 + 1.481 + public static Localizable localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) { 1.482 + return messageFactory.getMessage("runtimemodeler.invalidannotationOnImpl", arg0, arg1, arg2); 1.483 + } 1.484 + 1.485 + /** 1.486 + * 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}. 1.487 + * 1.488 + */ 1.489 + public static String RUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(Object arg0, Object arg1, Object arg2) { 1.490 + return localizer.localize(localizableRUNTIMEMODELER_INVALIDANNOTATION_ON_IMPL(arg0, arg1, arg2)); 1.491 + } 1.492 + 1.493 + public static Localizable localizableSERVICE_NAME_REQUIRED() { 1.494 + return messageFactory.getMessage("service.name.required"); 1.495 + } 1.496 + 1.497 + /** 1.498 + * Service QName is not found 1.499 + * 1.500 + */ 1.501 + public static String SERVICE_NAME_REQUIRED() { 1.502 + return localizer.localize(localizableSERVICE_NAME_REQUIRED()); 1.503 + } 1.504 + 1.505 + public static Localizable localizablePROVIDER_NOT_PARAMETERIZED(Object arg0) { 1.506 + return messageFactory.getMessage("provider.not.parameterized", arg0); 1.507 + } 1.508 + 1.509 + /** 1.510 + * "{0}" implements Provider but doesn't specify the type parameter 1.511 + * 1.512 + */ 1.513 + public static String PROVIDER_NOT_PARAMETERIZED(Object arg0) { 1.514 + return localizer.localize(localizablePROVIDER_NOT_PARAMETERIZED(arg0)); 1.515 + } 1.516 + 1.517 + public static Localizable localizableRUNTIME_WSDL_PATCHER() { 1.518 + return messageFactory.getMessage("runtime.wsdl.patcher"); 1.519 + } 1.520 + 1.521 + /** 1.522 + * error while patching WSDL related document 1.523 + * 1.524 + */ 1.525 + public static String RUNTIME_WSDL_PATCHER() { 1.526 + return localizer.localize(localizableRUNTIME_WSDL_PATCHER()); 1.527 + } 1.528 + 1.529 + public static Localizable localizableRUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { 1.530 + return messageFactory.getMessage("runtime.saxparser.exception", arg0, arg1); 1.531 + } 1.532 + 1.533 + /** 1.534 + * {0} 1.535 + * {1} 1.536 + * 1.537 + */ 1.538 + public static String RUNTIME_SAXPARSER_EXCEPTION(Object arg0, Object arg1) { 1.539 + return localizer.localize(localizableRUNTIME_SAXPARSER_EXCEPTION(arg0, arg1)); 1.540 + } 1.541 + 1.542 + public static Localizable localizableWRONG_PARAMETER_TYPE(Object arg0) { 1.543 + return messageFactory.getMessage("wrong.parameter.type", arg0); 1.544 + } 1.545 + 1.546 + /** 1.547 + * Incorrect argument types for method "{0}" 1.548 + * 1.549 + */ 1.550 + public static String WRONG_PARAMETER_TYPE(Object arg0) { 1.551 + return localizer.localize(localizableWRONG_PARAMETER_TYPE(arg0)); 1.552 + } 1.553 + 1.554 + public static Localizable localizableRUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) { 1.555 + return messageFactory.getMessage("runtime.parser.wsdl.not.found", arg0); 1.556 + } 1.557 + 1.558 + /** 1.559 + * {0} is not found in the WAR file. Package it in the WAR file or correct it in sun-jaxws.xml. 1.560 + * 1.561 + */ 1.562 + public static String RUNTIME_PARSER_WSDL_NOT_FOUND(Object arg0) { 1.563 + return localizer.localize(localizableRUNTIME_PARSER_WSDL_NOT_FOUND(arg0)); 1.564 + } 1.565 + 1.566 + public static Localizable localizableRUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) { 1.567 + return messageFactory.getMessage("runtime.parser.classNotFound", arg0); 1.568 + } 1.569 + 1.570 + /** 1.571 + * class not found in runtime descriptor: {0} 1.572 + * 1.573 + */ 1.574 + public static String RUNTIME_PARSER_CLASS_NOT_FOUND(Object arg0) { 1.575 + return localizer.localize(localizableRUNTIME_PARSER_CLASS_NOT_FOUND(arg0)); 1.576 + } 1.577 + 1.578 + public static Localizable localizableUNSUPPORTED_CHARSET(Object arg0) { 1.579 + return messageFactory.getMessage("unsupported.charset", arg0); 1.580 + } 1.581 + 1.582 + /** 1.583 + * Unsupported charset "{0}" in the received message''s Content-Type 1.584 + * 1.585 + */ 1.586 + public static String UNSUPPORTED_CHARSET(Object arg0) { 1.587 + return localizer.localize(localizableUNSUPPORTED_CHARSET(arg0)); 1.588 + } 1.589 + 1.590 + public static Localizable localizableSTATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) { 1.591 + return messageFactory.getMessage("static.resource.injection.only", arg0, arg1); 1.592 + } 1.593 + 1.594 + /** 1.595 + * Static resource {0} cannot be injected to non-static "{1}" 1.596 + * 1.597 + */ 1.598 + public static String STATIC_RESOURCE_INJECTION_ONLY(Object arg0, Object arg1) { 1.599 + return localizer.localize(localizableSTATIC_RESOURCE_INJECTION_ONLY(arg0, arg1)); 1.600 + } 1.601 + 1.602 + public static Localizable localizableNOT_ZERO_PARAMETERS(Object arg0) { 1.603 + return messageFactory.getMessage("not.zero.parameters", arg0); 1.604 + } 1.605 + 1.606 + /** 1.607 + * Method "{0}" shouldn''t have any arguments 1.608 + * 1.609 + */ 1.610 + public static String NOT_ZERO_PARAMETERS(Object arg0) { 1.611 + return localizer.localize(localizableNOT_ZERO_PARAMETERS(arg0)); 1.612 + } 1.613 + 1.614 + public static Localizable localizableDUPLICATE_PRIMARY_WSDL(Object arg0) { 1.615 + return messageFactory.getMessage("duplicate.primary.wsdl", arg0); 1.616 + } 1.617 + 1.618 + /** 1.619 + * Metadata has more than one WSDL that has Service definition for the endpoint. WSDL={0} is one such WSDL. 1.620 + * 1.621 + */ 1.622 + public static String DUPLICATE_PRIMARY_WSDL(Object arg0) { 1.623 + return localizer.localize(localizableDUPLICATE_PRIMARY_WSDL(arg0)); 1.624 + } 1.625 + 1.626 + public static Localizable localizableDUPLICATE_ABSTRACT_WSDL(Object arg0) { 1.627 + return messageFactory.getMessage("duplicate.abstract.wsdl", arg0); 1.628 + } 1.629 + 1.630 + /** 1.631 + * Metadata has more than one WSDL that has PortType definition for the endpoint. WSDL={0} is one such WSDL. 1.632 + * 1.633 + */ 1.634 + public static String DUPLICATE_ABSTRACT_WSDL(Object arg0) { 1.635 + return localizer.localize(localizableDUPLICATE_ABSTRACT_WSDL(arg0)); 1.636 + } 1.637 + 1.638 + public static Localizable localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) { 1.639 + return messageFactory.getMessage("stateful.invalid.webservice.context", arg0); 1.640 + } 1.641 + 1.642 + /** 1.643 + * Not a WebServiceContext from JAX-WS RI: {0} 1.644 + * 1.645 + */ 1.646 + public static String STATEFUL_INVALID_WEBSERVICE_CONTEXT(Object arg0) { 1.647 + return localizer.localize(localizableSTATEFUL_INVALID_WEBSERVICE_CONTEXT(arg0)); 1.648 + } 1.649 + 1.650 + public static Localizable localizableRUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) { 1.651 + return messageFactory.getMessage("runtime.parser.invalidElement", arg0, arg1); 1.652 + } 1.653 + 1.654 + /** 1.655 + * invalid element "{1}" in runtime descriptor (line {0}) 1.656 + * 1.657 + */ 1.658 + public static String RUNTIME_PARSER_INVALID_ELEMENT(Object arg0, Object arg1) { 1.659 + return localizer.localize(localizableRUNTIME_PARSER_INVALID_ELEMENT(arg0, arg1)); 1.660 + } 1.661 + 1.662 + public static Localizable localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { 1.663 + return messageFactory.getMessage("runtime.parser.missing.attribute", arg0, arg1, arg2); 1.664 + } 1.665 + 1.666 + /** 1.667 + * missing attribute "{2}" in element "{1}" of runtime descriptor (line {0}) 1.668 + * 1.669 + */ 1.670 + public static String RUNTIME_PARSER_MISSING_ATTRIBUTE(Object arg0, Object arg1, Object arg2) { 1.671 + return localizer.localize(localizableRUNTIME_PARSER_MISSING_ATTRIBUTE(arg0, arg1, arg2)); 1.672 + } 1.673 + 1.674 + public static Localizable localizableWRONG_FIELD_TYPE(Object arg0) { 1.675 + return messageFactory.getMessage("wrong.field.type", arg0); 1.676 + } 1.677 + 1.678 + /** 1.679 + * Incorrect type for field "{0}" 1.680 + * 1.681 + */ 1.682 + public static String WRONG_FIELD_TYPE(Object arg0) { 1.683 + return localizer.localize(localizableWRONG_FIELD_TYPE(arg0)); 1.684 + } 1.685 + 1.686 + public static Localizable localizableDUPLICATE_PORT_KNOWN_HEADER(Object arg0) { 1.687 + return messageFactory.getMessage("duplicate.portKnownHeader", arg0); 1.688 + } 1.689 + 1.690 + /** 1.691 + * Received SOAP message contains duplicate header: {0} for a bound parameter 1.692 + * 1.693 + */ 1.694 + public static String DUPLICATE_PORT_KNOWN_HEADER(Object arg0) { 1.695 + return localizer.localize(localizableDUPLICATE_PORT_KNOWN_HEADER(arg0)); 1.696 + } 1.697 + 1.698 + public static Localizable localizableUNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) { 1.699 + return messageFactory.getMessage("unsupported.contentType", arg0, arg1); 1.700 + } 1.701 + 1.702 + /** 1.703 + * Unsupported Content-Type: {0} Supported ones are: {1} 1.704 + * 1.705 + */ 1.706 + public static String UNSUPPORTED_CONTENT_TYPE(Object arg0, Object arg1) { 1.707 + return localizer.localize(localizableUNSUPPORTED_CONTENT_TYPE(arg0, arg1)); 1.708 + } 1.709 + 1.710 + public static Localizable localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) { 1.711 + return messageFactory.getMessage("failed.to.instantiate.instanceResolver", arg0, arg1, arg2); 1.712 + } 1.713 + 1.714 + /** 1.715 + * Unable to instantiate {0} (which is specified in {1} on {2}) 1.716 + * 1.717 + */ 1.718 + public static String FAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(Object arg0, Object arg1, Object arg2) { 1.719 + return localizer.localize(localizableFAILED_TO_INSTANTIATE_INSTANCE_RESOLVER(arg0, arg1, arg2)); 1.720 + } 1.721 + 1.722 + public static Localizable localizableDD_MTOM_CONFLICT(Object arg0, Object arg1) { 1.723 + return messageFactory.getMessage("dd.mtom.conflict", arg0, arg1); 1.724 + } 1.725 + 1.726 + /** 1.727 + * Error in Deployment Descriptor : MTOM Configuration in binding {0} conflicts with enable-mtom attribute value {1} 1.728 + * 1.729 + */ 1.730 + public static String DD_MTOM_CONFLICT(Object arg0, Object arg1) { 1.731 + return localizer.localize(localizableDD_MTOM_CONFLICT(arg0, arg1)); 1.732 + } 1.733 + 1.734 +}