com.sun.xml.ws.resources.ClientMessages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.resources;
import java.util.Locale;
import java.util.ResourceBundle;
import com.sun.istack.localization.Localizable;
import com.sun.istack.localization.LocalizableMessageFactory;
import com.sun.istack.localization.LocalizableMessageFactory.ResourceBundleSupplier;
import com.sun.istack.localization.Localizer;
/**
* Defines string formatting method for each constant in the resource file
*
*/
public final class ClientMessages {
private final static String BUNDLE_NAME = "com.sun.xml.ws.resources.client";
private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new ClientMessages.BundleSupplier());
private final static Localizer LOCALIZER = new Localizer();
public static Localizable localizableINVALID_WSDL_URL(Object arg0) {
return MESSAGE_FACTORY.getMessage("invalid.wsdl.url", arg0);
}
/**
* Invalid WSDL URL: {0}
*
*/
public static String INVALID_WSDL_URL(Object arg0) {
return LOCALIZER.localize(localizableINVALID_WSDL_URL(arg0));
}
public static Localizable localizableINVALID_EPR_PORT_NAME(Object arg0, Object arg1) {
return MESSAGE_FACTORY.getMessage("invalid.epr.port.name", arg0, arg1);
}
/**
* EndpointName specified in EPR {0} is not a WSDL port QName, valid Ports are {1}
*
*/
public static String INVALID_EPR_PORT_NAME(Object arg0, Object arg1) {
return LOCALIZER.localize(localizableINVALID_EPR_PORT_NAME(arg0, arg1));
}
public static Localizable localizableINVALID_SOAP_ROLE_NONE() {
return MESSAGE_FACTORY.getMessage("invalid.soap.role.none");
}
/**
* Cannot set SOAP 1.2 role "none"
*
*/
public static String INVALID_SOAP_ROLE_NONE() {
return LOCALIZER.localize(localizableINVALID_SOAP_ROLE_NONE());
}
public static Localizable localizableEPR_WITHOUT_ADDRESSING_ON() {
return MESSAGE_FACTORY.getMessage("epr.without.addressing.on");
}
/**
* EPR is specified without enabling WS-Addressing support.
*
*/
public static String EPR_WITHOUT_ADDRESSING_ON() {
return LOCALIZER.localize(localizableEPR_WITHOUT_ADDRESSING_ON());
}
public static Localizable localizableFAILED_TO_PARSE_WITH_MEX(Object arg0, Object arg1, Object arg2) {
return MESSAGE_FACTORY.getMessage("failed.to.parseWithMEX", arg0, arg1, arg2);
}
/**
* Failed to access the WSDL at: {0}. It failed with:
* {1}.
* Retrying with MEX gave:
* {2}
*
*/
public static String FAILED_TO_PARSE_WITH_MEX(Object arg0, Object arg1, Object arg2) {
return LOCALIZER.localize(localizableFAILED_TO_PARSE_WITH_MEX(arg0, arg1, arg2));
}
public static Localizable localizableHTTP_STATUS_CODE(Object arg0, Object arg1) {
return MESSAGE_FACTORY.getMessage("http.status.code", arg0, arg1);
}
/**
* The server sent HTTP status code {0}: {1}
*
*/
public static String HTTP_STATUS_CODE(Object arg0, Object arg1) {
return LOCALIZER.localize(localizableHTTP_STATUS_CODE(arg0, arg1));
}
public static Localizable localizableINVALID_SERVICE_NAME(Object arg0, Object arg1) {
return MESSAGE_FACTORY.getMessage("invalid.service.name", arg0, arg1);
}
/**
* {0} is not a valid service. Valid services are: {1}
*
*/
public static String INVALID_SERVICE_NAME(Object arg0, Object arg1) {
return LOCALIZER.localize(localizableINVALID_SERVICE_NAME(arg0, arg1));
}
public static Localizable localizableRUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) {
return MESSAGE_FACTORY.getMessage("runtime.wsdlparser.invalidWSDL", arg0, arg1, arg2, arg3);
}
/**
* Invalid WSDL {0}, expected {1} found {2} at (line{3})
*
*/
public static String RUNTIME_WSDLPARSER_INVALID_WSDL(Object arg0, Object arg1, Object arg2, Object arg3) {
return LOCALIZER.localize(localizableRUNTIME_WSDLPARSER_INVALID_WSDL(arg0, arg1, arg2, arg3));
}
public static Localizable localizableNON_LOGICAL_HANDLER_SET(Object arg0) {
return MESSAGE_FACTORY.getMessage("non.logical.handler.set", arg0);
}
/**
* Cannot set {0} on binding. Handler must be a LogicalHandler.
*
*/
public static String NON_LOGICAL_HANDLER_SET(Object arg0) {
return LOCALIZER.localize(localizableNON_LOGICAL_HANDLER_SET(arg0));
}
public static Localizable localizableINVALID_PORT_NAME(Object arg0, Object arg1) {
return MESSAGE_FACTORY.getMessage("invalid.port.name", arg0, arg1);
}
/**
* {0} is not a valid port. Valid ports are: {1}
*
*/
public static String INVALID_PORT_NAME(Object arg0, Object arg1) {
return LOCALIZER.localize(localizableINVALID_PORT_NAME(arg0, arg1));
}
public static Localizable localizableINVALID_SOAP_ACTION() {
return MESSAGE_FACTORY.getMessage("invalid.soap.action");
}
/**
* A valid SOAPAction should be set in the RequestContext when Addressing is enabled, Use BindingProvider.SOAPACTION_URI_PROPERTY to set it.
*
*/
public static String INVALID_SOAP_ACTION() {
return LOCALIZER.localize(localizableINVALID_SOAP_ACTION());
}
public static Localizable localizableINVALID_ADDRESS(Object arg0) {
return MESSAGE_FACTORY.getMessage("invalid.address", arg0);
}
/**
* Invalid address: {0}
*
*/
public static String INVALID_ADDRESS(Object arg0) {
return LOCALIZER.localize(localizableINVALID_ADDRESS(arg0));
}
public static Localizable localizableFAILED_TO_PARSE(Object arg0, Object arg1) {
return MESSAGE_FACTORY.getMessage("failed.to.parse", arg0, arg1);
}
/**
* Failed to access the WSDL at: {0}. It failed with:
* {1}.
*
*/
public static String FAILED_TO_PARSE(Object arg0, Object arg1) {
return LOCALIZER.localize(localizableFAILED_TO_PARSE(arg0, arg1));
}
public static Localizable localizableHTTP_NOT_FOUND(Object arg0) {
return MESSAGE_FACTORY.getMessage("http.not.found", arg0);
}
/**
* HTTP Status-Code 404: Not Found - {0}
*
*/
public static String HTTP_NOT_FOUND(Object arg0) {
return LOCALIZER.localize(localizableHTTP_NOT_FOUND(arg0));
}
public static Localizable localizableUNSUPPORTED_OPERATION(Object arg0, Object arg1, Object arg2) {
return MESSAGE_FACTORY.getMessage("unsupported.operation", arg0, arg1, arg2);
}
/**
* {0} not supported with {1}. Must be: {2}
*
*/
public static String UNSUPPORTED_OPERATION(Object arg0, Object arg1, Object arg2) {
return LOCALIZER.localize(localizableUNSUPPORTED_OPERATION(arg0, arg1, arg2));
}
public static Localizable localizableWSDL_NOT_FOUND(Object arg0) {
return MESSAGE_FACTORY.getMessage("wsdl.not.found", arg0);
}
/**
* WSDL url {0} is not accessible.
*
*/
public static String WSDL_NOT_FOUND(Object arg0) {
return LOCALIZER.localize(localizableWSDL_NOT_FOUND(arg0));
}
public static Localizable localizableINVALID_SERVICE_NAME_NULL(Object arg0) {
return MESSAGE_FACTORY.getMessage("invalid.service.name.null", arg0);
}
/**
* {0} is not a valid service
*
*/
public static String INVALID_SERVICE_NAME_NULL(Object arg0) {
return LOCALIZER.localize(localizableINVALID_SERVICE_NAME_NULL(arg0));
}
public static Localizable localizableHTTP_CLIENT_FAILED(Object arg0) {
return MESSAGE_FACTORY.getMessage("http.client.failed", arg0);
}
/**
* HTTP transport error: {0}
*
*/
public static String HTTP_CLIENT_FAILED(Object arg0) {
return LOCALIZER.localize(localizableHTTP_CLIENT_FAILED(arg0));
}
public static Localizable localizableFAILED_TO_PARSE_EPR(Object arg0) {
return MESSAGE_FACTORY.getMessage("failed.to.parse.epr", arg0);
}
/**
* Failed to parse EPR: {0}
*
*/
public static String FAILED_TO_PARSE_EPR(Object arg0) {
return LOCALIZER.localize(localizableFAILED_TO_PARSE_EPR(arg0));
}
public static Localizable localizableLOCAL_CLIENT_FAILED(Object arg0) {
return MESSAGE_FACTORY.getMessage("local.client.failed", arg0);
}
/**
* local transport error: {0}
*
*/
public static String LOCAL_CLIENT_FAILED(Object arg0) {
return LOCALIZER.localize(localizableLOCAL_CLIENT_FAILED(arg0));
}
public static Localizable localizableUNDEFINED_BINDING(Object arg0) {
return MESSAGE_FACTORY.getMessage("undefined.binding", arg0);
}
/**
* Undefined binding: {0}
*
*/
public static String UNDEFINED_BINDING(Object arg0) {
return LOCALIZER.localize(localizableUNDEFINED_BINDING(arg0));
}
public static Localizable localizableINVALID_SERVICE_NO_WSDL(Object arg0) {
return MESSAGE_FACTORY.getMessage("invalid.service.no.wsdl", arg0);
}
/**
* No wsdl metadata for service: {0}, can't create proxy! Try creating Service by providing a WSDL URL
*
*/
public static String INVALID_SERVICE_NO_WSDL(Object arg0) {
return LOCALIZER.localize(localizableINVALID_SERVICE_NO_WSDL(arg0));
}
public static Localizable localizableWSDL_CONTAINS_NO_SERVICE(Object arg0) {
return MESSAGE_FACTORY.getMessage("wsdl.contains.no.service", arg0);
}
/**
* WSDL {0} contains no service definition.
*
*/
public static String WSDL_CONTAINS_NO_SERVICE(Object arg0) {
return LOCALIZER.localize(localizableWSDL_CONTAINS_NO_SERVICE(arg0));
}
public static Localizable localizableINVALID_BINDING_ID(Object arg0, Object arg1) {
return MESSAGE_FACTORY.getMessage("invalid.binding.id", arg0, arg1);
}
/**
* Invalid binding id: {0}. Must be: {1}
*
*/
public static String INVALID_BINDING_ID(Object arg0, Object arg1) {
return LOCALIZER.localize(localizableINVALID_BINDING_ID(arg0, arg1));
}
public static Localizable localizableUNDEFINED_PORT_TYPE(Object arg0) {
return MESSAGE_FACTORY.getMessage("undefined.portType", arg0);
}
/**
* Undefined port type: {0}
*
*/
public static String UNDEFINED_PORT_TYPE(Object arg0) {
return LOCALIZER.localize(localizableUNDEFINED_PORT_TYPE(arg0));
}
private static class BundleSupplier
implements ResourceBundleSupplier
{
public ResourceBundle getResourceBundle(Locale locale) {
return ResourceBundle.getBundle(BUNDLE_NAME, locale);
}
}
}