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 ClientMessages {
  43 
  44     private final static String BUNDLE_NAME = "com.sun.xml.internal.ws.resources.client";
  45     private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ClientMessages.BundleSupplier());
  46     private final static Localizer LOCALIZER = new Localizer();

  47 
  48     public static Localizable localizableINVALID_WSDL_URL(Object arg0) {
  49         return MESSAGE_FACTORY.getMessage("invalid.wsdl.url", arg0);
  50     }
  51 
  52     /**
  53      * Invalid WSDL URL: {0}
  54      *
  55      */
  56     public static String INVALID_WSDL_URL(Object arg0) {
  57         return LOCALIZER.localize(localizableINVALID_WSDL_URL(arg0));
  58     }
  59 
  60     public static Localizable localizableINVALID_EPR_PORT_NAME(Object arg0, Object arg1) {
  61         return MESSAGE_FACTORY.getMessage("invalid.epr.port.name", arg0, arg1);
  62     }
  63 
  64     /**
  65      * EndpointName specified in EPR {0}  is not a WSDL port QName, valid Ports are {1}

  66      *
  67      */
  68     public static String INVALID_EPR_PORT_NAME(Object arg0, Object arg1) {
  69         return LOCALIZER.localize(localizableINVALID_EPR_PORT_NAME(arg0, arg1));
  70     }
  71 
  72     public static Localizable localizableINVALID_SOAP_ROLE_NONE() {
  73         return MESSAGE_FACTORY.getMessage("invalid.soap.role.none");
  74     }
  75 
  76     /**
  77      * Cannot set SOAP 1.2 role "none"
  78      *
  79      */
  80     public static String INVALID_SOAP_ROLE_NONE() {
  81         return LOCALIZER.localize(localizableINVALID_SOAP_ROLE_NONE());
  82     }
  83 
  84     public static Localizable localizableEPR_WITHOUT_ADDRESSING_ON() {
  85         return MESSAGE_FACTORY.getMessage("epr.without.addressing.on");
  86     }
  87 
  88     /**
  89      * EPR is specified without enabling WS-Addressing support.
  90      *
  91      */
  92     public static String EPR_WITHOUT_ADDRESSING_ON() {
  93         return LOCALIZER.localize(localizableEPR_WITHOUT_ADDRESSING_ON());
  94     }
  95 
  96     public static Localizable localizableFAILED_TO_PARSE_WITH_MEX(Object arg0, Object arg1, Object arg2) {
  97         return MESSAGE_FACTORY.getMessage("failed.to.parseWithMEX", arg0, arg1, arg2);
  98     }
  99 
 100     /**
 101      * Failed to access the WSDL at: {0}. It failed with:
 102      *  {1}.
 103      * Retrying with MEX gave:
 104      *  {2}
 105      *
 106      */
 107     public static String FAILED_TO_PARSE_WITH_MEX(Object arg0, Object arg1, Object arg2) {
 108         return LOCALIZER.localize(localizableFAILED_TO_PARSE_WITH_MEX(arg0, arg1, arg2));
 109     }
 110 
 111     public static Localizable localizableHTTP_STATUS_CODE(Object arg0, Object arg1) {
 112         return MESSAGE_FACTORY.getMessage("http.status.code", arg0, arg1);
 113     }
 114 
 115     /**
 116      * The server sent HTTP status code {0}: {1}
 117      *
 118      */
 119     public static String HTTP_STATUS_CODE(Object arg0, Object arg1) {
 120         return LOCALIZER.localize(localizableHTTP_STATUS_CODE(arg0, arg1));
 121     }
 122 
 123     public static Localizable localizableINVALID_SERVICE_NAME(Object arg0, Object arg1) {
 124         return MESSAGE_FACTORY.getMessage("invalid.service.name", arg0, arg1);
 125     }
 126 
 127     /**
 128      * {0} is not a valid service. Valid services are: {1}
 129      *
 130      */
 131     public static String INVALID_SERVICE_NAME(Object arg0, Object arg1) {
 132         return LOCALIZER.localize(localizableINVALID_SERVICE_NAME(arg0, arg1));
 133     }
 134 
 135     public static Localizable localizableRUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) {
 136         return MESSAGE_FACTORY.getMessage("runtime.wsdlparser.invalidWSDL", arg0, arg1, arg2, arg3);
 137     }
 138 
 139     /**
 140      * Invalid WSDL {0}, expected {1} found {2} at (line{3})
 141      *
 142      */
 143     public static String RUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) {
 144         return LOCALIZER.localize(localizableRUNTIME_WSDLPARSER_INVALID_WSDL(arg0, arg1, arg2, arg3));
 145     }
 146 
 147     public static Localizable localizableNON_LOGICAL_HANDLER_SET(Object arg0) {
 148         return MESSAGE_FACTORY.getMessage("non.logical.handler.set", arg0);
 149     }
 150 
 151     /**
 152      * Cannot set {0} on binding. Handler must be a LogicalHandler.
 153      *
 154      */
 155     public static String NON_LOGICAL_HANDLER_SET(Object arg0) {
 156         return LOCALIZER.localize(localizableNON_LOGICAL_HANDLER_SET(arg0));
 157     }
 158 
 159     public static Localizable localizableINVALID_PORT_NAME(Object arg0, Object arg1) {
 160         return MESSAGE_FACTORY.getMessage("invalid.port.name", arg0, arg1);
 161     }
 162 
 163     /**
 164      * {0} is not a valid port. Valid ports are: {1}



 165      *
 166      */
 167     public static String INVALID_PORT_NAME(Object arg0, Object arg1) {
 168         return LOCALIZER.localize(localizableINVALID_PORT_NAME(arg0, arg1));
 169     }
 170 
 171     public static Localizable localizableINVALID_SOAP_ACTION() {
 172         return MESSAGE_FACTORY.getMessage("invalid.soap.action");
 173     }
 174 
 175     /**
 176      * A valid SOAPAction should be set in the RequestContext when Addressing is enabled, Use BindingProvider.SOAPACTION_URI_PROPERTY to set it.
 177      *
 178      */
 179     public static String INVALID_SOAP_ACTION() {
 180         return LOCALIZER.localize(localizableINVALID_SOAP_ACTION());
 181     }
 182 
 183     public static Localizable localizableINVALID_ADDRESS(Object arg0) {
 184         return MESSAGE_FACTORY.getMessage("invalid.address", arg0);
 185     }
 186 
 187     /**
 188      * Invalid address: {0}
 189      *
 190      */
 191     public static String INVALID_ADDRESS(Object arg0) {
 192         return LOCALIZER.localize(localizableINVALID_ADDRESS(arg0));
 193     }
 194 
 195     public static Localizable localizableFAILED_TO_PARSE(Object arg0, Object arg1) {
 196         return MESSAGE_FACTORY.getMessage("failed.to.parse", arg0, arg1);
 197     }
 198 
 199     /**
 200      * Failed to access the WSDL at: {0}. It failed with:
 201      *  {1}.
 202      *
 203      */
 204     public static String FAILED_TO_PARSE(Object arg0, Object arg1) {
 205         return LOCALIZER.localize(localizableFAILED_TO_PARSE(arg0, arg1));
 206     }
 207 
 208     public static Localizable localizableHTTP_NOT_FOUND(Object arg0) {
 209         return MESSAGE_FACTORY.getMessage("http.not.found", arg0);
 210     }
 211 
 212     /**
 213      * HTTP Status-Code 404: Not Found - {0}
 214      *
 215      */
 216     public static String HTTP_NOT_FOUND(Object arg0) {
 217         return LOCALIZER.localize(localizableHTTP_NOT_FOUND(arg0));
 218     }
 219 
 220     public static Localizable localizableUNSUPPORTED_OPERATION(Object arg0, Object arg1, Object arg2) {
 221         return MESSAGE_FACTORY.getMessage("unsupported.operation", arg0, arg1, arg2);
 222     }
 223 
 224     /**
 225      * {0} not supported with {1}. Must be: {2}
 226      *
 227      */
 228     public static String UNSUPPORTED_OPERATION(Object arg0, Object arg1, Object arg2) {
 229         return LOCALIZER.localize(localizableUNSUPPORTED_OPERATION(arg0, arg1, arg2));
 230     }
 231 
 232     public static Localizable localizableWSDL_NOT_FOUND(Object arg0) {
 233         return MESSAGE_FACTORY.getMessage("wsdl.not.found", arg0);
 234     }
 235 
 236     /**
 237      * WSDL url {0} is not accessible.
 238      *
 239      */
 240     public static String WSDL_NOT_FOUND(Object arg0) {
 241         return LOCALIZER.localize(localizableWSDL_NOT_FOUND(arg0));
 242     }
 243 
 244     public static Localizable localizableINVALID_SERVICE_NAME_NULL(Object arg0) {
 245         return MESSAGE_FACTORY.getMessage("invalid.service.name.null", arg0);
 246     }
 247 
 248     /**
 249      * {0} is not a valid service
 250      *
 251      */
 252     public static String INVALID_SERVICE_NAME_NULL(Object arg0) {
 253         return LOCALIZER.localize(localizableINVALID_SERVICE_NAME_NULL(arg0));
 254     }
 255 
 256     public static Localizable localizableHTTP_CLIENT_FAILED(Object arg0) {
 257         return MESSAGE_FACTORY.getMessage("http.client.failed", arg0);
 258     }
 259 
 260     /**
 261      * HTTP transport error: {0}
 262      *
 263      */
 264     public static String HTTP_CLIENT_FAILED(Object arg0) {
 265         return LOCALIZER.localize(localizableHTTP_CLIENT_FAILED(arg0));
 266     }
 267 
 268     public static Localizable localizableFAILED_TO_PARSE_EPR(Object arg0) {
 269         return MESSAGE_FACTORY.getMessage("failed.to.parse.epr", arg0);
 270     }
 271 
 272     /**
 273      * Failed to parse EPR: {0}
 274      *
 275      */
 276     public static String FAILED_TO_PARSE_EPR(Object arg0) {
 277         return LOCALIZER.localize(localizableFAILED_TO_PARSE_EPR(arg0));
 278     }
 279 
 280     public static Localizable localizableLOCAL_CLIENT_FAILED(Object arg0) {
 281         return MESSAGE_FACTORY.getMessage("local.client.failed", arg0);
 282     }
 283 
 284     /**
 285      * local transport error: {0}
 286      *
 287      */
 288     public static String LOCAL_CLIENT_FAILED(Object arg0) {
 289         return LOCALIZER.localize(localizableLOCAL_CLIENT_FAILED(arg0));
 290     }
 291 
 292     public static Localizable localizableUNDEFINED_BINDING(Object arg0) {
 293         return MESSAGE_FACTORY.getMessage("undefined.binding", arg0);
 294     }
 295 
 296     /**
 297      * Undefined binding: {0}
 298      *
 299      */
 300     public static String UNDEFINED_BINDING(Object arg0) {
 301         return LOCALIZER.localize(localizableUNDEFINED_BINDING(arg0));
 302     }
 303 
 304     public static Localizable localizableINVALID_SERVICE_NO_WSDL(Object arg0) {
 305         return MESSAGE_FACTORY.getMessage("invalid.service.no.wsdl", arg0);
 306     }
 307 
 308     /**
 309      * No wsdl metadata for service: {0}, can't create proxy! Try creating Service by providing a WSDL URL
 310      *
 311      */
 312     public static String INVALID_SERVICE_NO_WSDL(Object arg0) {
 313         return LOCALIZER.localize(localizableINVALID_SERVICE_NO_WSDL(arg0));
 314     }
 315 
 316     public static Localizable localizableWSDL_CONTAINS_NO_SERVICE(Object arg0) {
 317         return MESSAGE_FACTORY.getMessage("wsdl.contains.no.service", arg0);
 318     }
 319 
 320     /**
 321      * WSDL {0} contains no service definition.
 322      *
 323      */
 324     public static String WSDL_CONTAINS_NO_SERVICE(Object arg0) {
 325         return LOCALIZER.localize(localizableWSDL_CONTAINS_NO_SERVICE(arg0));
 326     }
 327 
 328     public static Localizable localizableINVALID_BINDING_ID(Object arg0, Object arg1) {
 329         return MESSAGE_FACTORY.getMessage("invalid.binding.id", arg0, arg1);
 330     }
 331 
 332     /**
 333      * Invalid binding id: {0}. Must be: {1}
 334      *
 335      */
 336     public static String INVALID_BINDING_ID(Object arg0, Object arg1) {
 337         return LOCALIZER.localize(localizableINVALID_BINDING_ID(arg0, arg1));
 338     }
 339 
 340     public static Localizable localizableUNDEFINED_PORT_TYPE(Object arg0) {
 341         return MESSAGE_FACTORY.getMessage("undefined.portType", arg0);
 342     }
 343 
 344     /**
 345      * Undefined port type: {0}
 346      *
 347      */
 348     public static String UNDEFINED_PORT_TYPE(Object arg0) {
 349         return LOCALIZER.localize(localizableUNDEFINED_PORT_TYPE(arg0));
 350     }
 351 
 352     private static class BundleSupplier
 353         implements ResourceBundleSupplier
 354     {
 355 
 356 
 357         public ResourceBundle getResourceBundle(Locale locale) {
 358             return ResourceBundle.getBundle(BUNDLE_NAME, locale);
 359         }
 360 






 361     }
 362 
 363 }
--- EOF ---