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

Sat, 07 Nov 2020 10:30:02 +0800

author
aoqi
date
Sat, 07 Nov 2020 10:30:02 +0800
changeset 1921
7166269ef0f1
parent 637
9c07ef4934dd
permissions
-rw-r--r--

Added tag mips-jdk8u275-b01 for changeset fdbe50121f48

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 ClientMessages {
aoqi@0 38
aoqi@0 39 private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.client");
aoqi@0 40 private final static Localizer localizer = new Localizer();
aoqi@0 41
aoqi@0 42 public static Localizable localizableFAILED_TO_PARSE(Object arg0, Object arg1) {
aoqi@0 43 return messageFactory.getMessage("failed.to.parse", arg0, arg1);
aoqi@0 44 }
aoqi@0 45
aoqi@0 46 /**
aoqi@0 47 * Failed to access the WSDL at: {0}. It failed with:
aoqi@0 48 * {1}.
aoqi@0 49 *
aoqi@0 50 */
aoqi@0 51 public static String FAILED_TO_PARSE(Object arg0, Object arg1) {
aoqi@0 52 return localizer.localize(localizableFAILED_TO_PARSE(arg0, arg1));
aoqi@0 53 }
aoqi@0 54
aoqi@0 55 public static Localizable localizableINVALID_BINDING_ID(Object arg0, Object arg1) {
aoqi@0 56 return messageFactory.getMessage("invalid.binding.id", arg0, arg1);
aoqi@0 57 }
aoqi@0 58
aoqi@0 59 /**
aoqi@0 60 * Invalid binding id: {0}. Must be: {1}
aoqi@0 61 *
aoqi@0 62 */
aoqi@0 63 public static String INVALID_BINDING_ID(Object arg0, Object arg1) {
aoqi@0 64 return localizer.localize(localizableINVALID_BINDING_ID(arg0, arg1));
aoqi@0 65 }
aoqi@0 66
aoqi@0 67 public static Localizable localizableEPR_WITHOUT_ADDRESSING_ON() {
aoqi@0 68 return messageFactory.getMessage("epr.without.addressing.on");
aoqi@0 69 }
aoqi@0 70
aoqi@0 71 /**
aoqi@0 72 * EPR is specified without enabling WS-Addressing support.
aoqi@0 73 *
aoqi@0 74 */
aoqi@0 75 public static String EPR_WITHOUT_ADDRESSING_ON() {
aoqi@0 76 return localizer.localize(localizableEPR_WITHOUT_ADDRESSING_ON());
aoqi@0 77 }
aoqi@0 78
aoqi@0 79 public static Localizable localizableINVALID_SERVICE_NO_WSDL(Object arg0) {
aoqi@0 80 return messageFactory.getMessage("invalid.service.no.wsdl", arg0);
aoqi@0 81 }
aoqi@0 82
aoqi@0 83 /**
aoqi@0 84 * No wsdl metadata for service: {0}, can't create proxy! Try creating Service by providing a WSDL URL
aoqi@0 85 *
aoqi@0 86 */
aoqi@0 87 public static String INVALID_SERVICE_NO_WSDL(Object arg0) {
aoqi@0 88 return localizer.localize(localizableINVALID_SERVICE_NO_WSDL(arg0));
aoqi@0 89 }
aoqi@0 90
aoqi@0 91 public static Localizable localizableINVALID_SOAP_ROLE_NONE() {
aoqi@0 92 return messageFactory.getMessage("invalid.soap.role.none");
aoqi@0 93 }
aoqi@0 94
aoqi@0 95 /**
aoqi@0 96 * Cannot set SOAP 1.2 role "none"
aoqi@0 97 *
aoqi@0 98 */
aoqi@0 99 public static String INVALID_SOAP_ROLE_NONE() {
aoqi@0 100 return localizer.localize(localizableINVALID_SOAP_ROLE_NONE());
aoqi@0 101 }
aoqi@0 102
aoqi@0 103 public static Localizable localizableUNDEFINED_BINDING(Object arg0) {
aoqi@0 104 return messageFactory.getMessage("undefined.binding", arg0);
aoqi@0 105 }
aoqi@0 106
aoqi@0 107 /**
aoqi@0 108 * Undefined binding: {0}
aoqi@0 109 *
aoqi@0 110 */
aoqi@0 111 public static String UNDEFINED_BINDING(Object arg0) {
aoqi@0 112 return localizer.localize(localizableUNDEFINED_BINDING(arg0));
aoqi@0 113 }
aoqi@0 114
aoqi@0 115 public static Localizable localizableHTTP_NOT_FOUND(Object arg0) {
aoqi@0 116 return messageFactory.getMessage("http.not.found", arg0);
aoqi@0 117 }
aoqi@0 118
aoqi@0 119 /**
aoqi@0 120 * HTTP Status-Code 404: Not Found - {0}
aoqi@0 121 *
aoqi@0 122 */
aoqi@0 123 public static String HTTP_NOT_FOUND(Object arg0) {
aoqi@0 124 return localizer.localize(localizableHTTP_NOT_FOUND(arg0));
aoqi@0 125 }
aoqi@0 126
aoqi@0 127 public static Localizable localizableINVALID_EPR_PORT_NAME(Object arg0, Object arg1) {
aoqi@0 128 return messageFactory.getMessage("invalid.epr.port.name", arg0, arg1);
aoqi@0 129 }
aoqi@0 130
aoqi@0 131 /**
aoqi@0 132 * EndpointName specified in EPR {0} is not a WSDL port QName, valid Ports are {1}
aoqi@0 133 *
aoqi@0 134 */
aoqi@0 135 public static String INVALID_EPR_PORT_NAME(Object arg0, Object arg1) {
aoqi@0 136 return localizer.localize(localizableINVALID_EPR_PORT_NAME(arg0, arg1));
aoqi@0 137 }
aoqi@0 138
aoqi@0 139 public static Localizable localizableFAILED_TO_PARSE_WITH_MEX(Object arg0, Object arg1, Object arg2) {
aoqi@0 140 return messageFactory.getMessage("failed.to.parseWithMEX", arg0, arg1, arg2);
aoqi@0 141 }
aoqi@0 142
aoqi@0 143 /**
aoqi@0 144 * Failed to access the WSDL at: {0}. It failed with:
aoqi@0 145 * {1}.
aoqi@0 146 * Retrying with MEX gave:
aoqi@0 147 * {2}
aoqi@0 148 *
aoqi@0 149 */
aoqi@0 150 public static String FAILED_TO_PARSE_WITH_MEX(Object arg0, Object arg1, Object arg2) {
aoqi@0 151 return localizer.localize(localizableFAILED_TO_PARSE_WITH_MEX(arg0, arg1, arg2));
aoqi@0 152 }
aoqi@0 153
aoqi@0 154 public static Localizable localizableHTTP_STATUS_CODE(Object arg0, Object arg1) {
aoqi@0 155 return messageFactory.getMessage("http.status.code", arg0, arg1);
aoqi@0 156 }
aoqi@0 157
aoqi@0 158 /**
aoqi@0 159 * The server sent HTTP status code {0}: {1}
aoqi@0 160 *
aoqi@0 161 */
aoqi@0 162 public static String HTTP_STATUS_CODE(Object arg0, Object arg1) {
aoqi@0 163 return localizer.localize(localizableHTTP_STATUS_CODE(arg0, arg1));
aoqi@0 164 }
aoqi@0 165
aoqi@0 166 public static Localizable localizableINVALID_ADDRESS(Object arg0) {
aoqi@0 167 return messageFactory.getMessage("invalid.address", arg0);
aoqi@0 168 }
aoqi@0 169
aoqi@0 170 /**
aoqi@0 171 * Invalid address: {0}
aoqi@0 172 *
aoqi@0 173 */
aoqi@0 174 public static String INVALID_ADDRESS(Object arg0) {
aoqi@0 175 return localizer.localize(localizableINVALID_ADDRESS(arg0));
aoqi@0 176 }
aoqi@0 177
aoqi@0 178 public static Localizable localizableUNDEFINED_PORT_TYPE(Object arg0) {
aoqi@0 179 return messageFactory.getMessage("undefined.portType", arg0);
aoqi@0 180 }
aoqi@0 181
aoqi@0 182 /**
aoqi@0 183 * Undefined port type: {0}
aoqi@0 184 *
aoqi@0 185 */
aoqi@0 186 public static String UNDEFINED_PORT_TYPE(Object arg0) {
aoqi@0 187 return localizer.localize(localizableUNDEFINED_PORT_TYPE(arg0));
aoqi@0 188 }
aoqi@0 189
aoqi@0 190 public static Localizable localizableWSDL_CONTAINS_NO_SERVICE(Object arg0) {
aoqi@0 191 return messageFactory.getMessage("wsdl.contains.no.service", arg0);
aoqi@0 192 }
aoqi@0 193
aoqi@0 194 /**
aoqi@0 195 * WSDL {0} contains no service definition.
aoqi@0 196 *
aoqi@0 197 */
aoqi@0 198 public static String WSDL_CONTAINS_NO_SERVICE(Object arg0) {
aoqi@0 199 return localizer.localize(localizableWSDL_CONTAINS_NO_SERVICE(arg0));
aoqi@0 200 }
aoqi@0 201
aoqi@0 202 public static Localizable localizableINVALID_SOAP_ACTION() {
aoqi@0 203 return messageFactory.getMessage("invalid.soap.action");
aoqi@0 204 }
aoqi@0 205
aoqi@0 206 /**
aoqi@0 207 * A valid SOAPAction should be set in the RequestContext when Addressing is enabled, Use BindingProvider.SOAPACTION_URI_PROPERTY to set it.
aoqi@0 208 *
aoqi@0 209 */
aoqi@0 210 public static String INVALID_SOAP_ACTION() {
aoqi@0 211 return localizer.localize(localizableINVALID_SOAP_ACTION());
aoqi@0 212 }
aoqi@0 213
aoqi@0 214 public static Localizable localizableNON_LOGICAL_HANDLER_SET(Object arg0) {
aoqi@0 215 return messageFactory.getMessage("non.logical.handler.set", arg0);
aoqi@0 216 }
aoqi@0 217
aoqi@0 218 /**
aoqi@0 219 * Cannot set {0} on binding. Handler must be a LogicalHandler.
aoqi@0 220 *
aoqi@0 221 */
aoqi@0 222 public static String NON_LOGICAL_HANDLER_SET(Object arg0) {
aoqi@0 223 return localizer.localize(localizableNON_LOGICAL_HANDLER_SET(arg0));
aoqi@0 224 }
aoqi@0 225
aoqi@0 226 public static Localizable localizableLOCAL_CLIENT_FAILED(Object arg0) {
aoqi@0 227 return messageFactory.getMessage("local.client.failed", arg0);
aoqi@0 228 }
aoqi@0 229
aoqi@0 230 /**
aoqi@0 231 * local transport error: {0}
aoqi@0 232 *
aoqi@0 233 */
aoqi@0 234 public static String LOCAL_CLIENT_FAILED(Object arg0) {
aoqi@0 235 return localizer.localize(localizableLOCAL_CLIENT_FAILED(arg0));
aoqi@0 236 }
aoqi@0 237
aoqi@0 238 public static Localizable localizableRUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) {
aoqi@0 239 return messageFactory.getMessage("runtime.wsdlparser.invalidWSDL", arg0, arg1, arg2, arg3);
aoqi@0 240 }
aoqi@0 241
aoqi@0 242 /**
aoqi@0 243 * Invalid WSDL {0}, expected {1} found {2} at (line{3})
aoqi@0 244 *
aoqi@0 245 */
aoqi@0 246 public static String RUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) {
aoqi@0 247 return localizer.localize(localizableRUNTIME_WSDLPARSER_INVALID_WSDL(arg0, arg1, arg2, arg3));
aoqi@0 248 }
aoqi@0 249
aoqi@0 250 public static Localizable localizableWSDL_NOT_FOUND(Object arg0) {
aoqi@0 251 return messageFactory.getMessage("wsdl.not.found", arg0);
aoqi@0 252 }
aoqi@0 253
aoqi@0 254 /**
aoqi@0 255 * WSDL url {0} is not accessible.
aoqi@0 256 *
aoqi@0 257 */
aoqi@0 258 public static String WSDL_NOT_FOUND(Object arg0) {
aoqi@0 259 return localizer.localize(localizableWSDL_NOT_FOUND(arg0));
aoqi@0 260 }
aoqi@0 261
aoqi@0 262 public static Localizable localizableHTTP_CLIENT_FAILED(Object arg0) {
aoqi@0 263 return messageFactory.getMessage("http.client.failed", arg0);
aoqi@0 264 }
aoqi@0 265
aoqi@0 266 /**
aoqi@0 267 * HTTP transport error: {0}
aoqi@0 268 *
aoqi@0 269 */
aoqi@0 270 public static String HTTP_CLIENT_FAILED(Object arg0) {
aoqi@0 271 return localizer.localize(localizableHTTP_CLIENT_FAILED(arg0));
aoqi@0 272 }
aoqi@0 273
aoqi@0 274 public static Localizable localizableINVALID_SERVICE_NAME_NULL(Object arg0) {
aoqi@0 275 return messageFactory.getMessage("invalid.service.name.null", arg0);
aoqi@0 276 }
aoqi@0 277
aoqi@0 278 /**
aoqi@0 279 * {0} is not a valid service
aoqi@0 280 *
aoqi@0 281 */
aoqi@0 282 public static String INVALID_SERVICE_NAME_NULL(Object arg0) {
aoqi@0 283 return localizer.localize(localizableINVALID_SERVICE_NAME_NULL(arg0));
aoqi@0 284 }
aoqi@0 285
aoqi@0 286 public static Localizable localizableINVALID_WSDL_URL(Object arg0) {
aoqi@0 287 return messageFactory.getMessage("invalid.wsdl.url", arg0);
aoqi@0 288 }
aoqi@0 289
aoqi@0 290 /**
aoqi@0 291 * Invalid WSDL URL: {0}
aoqi@0 292 *
aoqi@0 293 */
aoqi@0 294 public static String INVALID_WSDL_URL(Object arg0) {
aoqi@0 295 return localizer.localize(localizableINVALID_WSDL_URL(arg0));
aoqi@0 296 }
aoqi@0 297
aoqi@0 298 public static Localizable localizableINVALID_PORT_NAME(Object arg0, Object arg1) {
aoqi@0 299 return messageFactory.getMessage("invalid.port.name", arg0, arg1);
aoqi@0 300 }
aoqi@0 301
aoqi@0 302 /**
aoqi@0 303 * {0} is not a valid port. Valid ports are: {1}
aoqi@0 304 *
aoqi@0 305 */
aoqi@0 306 public static String INVALID_PORT_NAME(Object arg0, Object arg1) {
aoqi@0 307 return localizer.localize(localizableINVALID_PORT_NAME(arg0, arg1));
aoqi@0 308 }
aoqi@0 309
aoqi@0 310 public static Localizable localizableINVALID_SERVICE_NAME(Object arg0, Object arg1) {
aoqi@0 311 return messageFactory.getMessage("invalid.service.name", arg0, arg1);
aoqi@0 312 }
aoqi@0 313
aoqi@0 314 /**
aoqi@0 315 * {0} is not a valid service. Valid services are: {1}
aoqi@0 316 *
aoqi@0 317 */
aoqi@0 318 public static String INVALID_SERVICE_NAME(Object arg0, Object arg1) {
aoqi@0 319 return localizer.localize(localizableINVALID_SERVICE_NAME(arg0, arg1));
aoqi@0 320 }
aoqi@0 321
aoqi@0 322 public static Localizable localizableUNSUPPORTED_OPERATION(Object arg0, Object arg1, Object arg2) {
aoqi@0 323 return messageFactory.getMessage("unsupported.operation", arg0, arg1, arg2);
aoqi@0 324 }
aoqi@0 325
aoqi@0 326 /**
aoqi@0 327 * {0} not supported with {1}. Must be: {2}
aoqi@0 328 *
aoqi@0 329 */
aoqi@0 330 public static String UNSUPPORTED_OPERATION(Object arg0, Object arg1, Object arg2) {
aoqi@0 331 return localizer.localize(localizableUNSUPPORTED_OPERATION(arg0, arg1, arg2));
aoqi@0 332 }
aoqi@0 333
aoqi@0 334 public static Localizable localizableFAILED_TO_PARSE_EPR(Object arg0) {
aoqi@0 335 return messageFactory.getMessage("failed.to.parse.epr", arg0);
aoqi@0 336 }
aoqi@0 337
aoqi@0 338 /**
aoqi@0 339 * Failed to parse EPR: {0}
aoqi@0 340 *
aoqi@0 341 */
aoqi@0 342 public static String FAILED_TO_PARSE_EPR(Object arg0) {
aoqi@0 343 return localizer.localize(localizableFAILED_TO_PARSE_EPR(arg0));
aoqi@0 344 }
aoqi@0 345
aoqi@0 346 }

mercurial