325N/A/*
325N/A * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
325N/A *
325N/A * This code is free software; you can redistribute it and/or modify it
325N/A * under the terms of the GNU General Public License version 2 only, as
325N/A * published by the Free Software Foundation. Oracle designates this
325N/A * particular file as subject to the "Classpath" exception as provided
325N/A * by Oracle in the LICENSE file that accompanied this code.
325N/A *
325N/A * This code is distributed in the hope that it will be useful, but WITHOUT
325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
325N/A * version 2 for more details (a copy is included in the LICENSE file that
325N/A * accompanied this code).
325N/A *
325N/A * You should have received a copy of the GNU General Public License version
325N/A * 2 along with this work; if not, write to the Free Software Foundation,
325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
325N/A *
325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
325N/A * or visit www.oracle.com if you need additional information or have any
325N/A * questions.
325N/A */
325N/A
325N/A
325N/Apackage com.sun.xml.internal.ws.resources;
325N/A
325N/Aimport com.sun.xml.internal.ws.util.localization.Localizable;
325N/Aimport com.sun.xml.internal.ws.util.localization.LocalizableMessageFactory;
325N/Aimport com.sun.xml.internal.ws.util.localization.Localizer;
325N/A
325N/A
325N/A/**
325N/A * Defines string formatting method for each constant in the resource file
325N/A *
325N/A */
325N/Apublic final class ProviderApiMessages {
325N/A
325N/A private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.providerApi");
325N/A private final static Localizer localizer = new Localizer();
325N/A
325N/A public static Localizable localizableNULL_ADDRESS_SERVICE_ENDPOINT() {
325N/A return messageFactory.getMessage("null.address.service.endpoint");
325N/A }
325N/A
325N/A /**
325N/A * Address in an EPR cannot be null, when serviceName or portName is null
325N/A *
325N/A */
325N/A public static String NULL_ADDRESS_SERVICE_ENDPOINT() {
325N/A return localizer.localize(localizableNULL_ADDRESS_SERVICE_ENDPOINT());
325N/A }
325N/A
325N/A public static Localizable localizableNO_WSDL_NO_PORT(Object arg0) {
325N/A return messageFactory.getMessage("no.wsdl.no.port", arg0);
325N/A }
325N/A
325N/A /**
325N/A * WSDL Metadata not available to create the proxy, either Service instance or ServiceEndpointInterface {0} should have WSDL information
325N/A *
325N/A */
325N/A public static String NO_WSDL_NO_PORT(Object arg0) {
325N/A return localizer.localize(localizableNO_WSDL_NO_PORT(arg0));
325N/A }
325N/A
325N/A public static Localizable localizableNULL_SERVICE() {
325N/A return messageFactory.getMessage("null.service");
325N/A }
325N/A
325N/A /**
325N/A * serviceName can't be null when portName is specified
325N/A *
325N/A */
325N/A public static String NULL_SERVICE() {
325N/A return localizer.localize(localizableNULL_SERVICE());
325N/A }
325N/A
325N/A public static Localizable localizableNULL_ADDRESS() {
325N/A return messageFactory.getMessage("null.address");
325N/A }
325N/A
325N/A /**
325N/A * Address in an EPR cannot be null
325N/A *
325N/A */
325N/A public static String NULL_ADDRESS() {
325N/A return localizer.localize(localizableNULL_ADDRESS());
325N/A }
325N/A
325N/A public static Localizable localizableNULL_PORTNAME() {
325N/A return messageFactory.getMessage("null.portname");
325N/A }
325N/A
325N/A /**
325N/A * EPR does n't have EndpointName in the Metadata
325N/A *
325N/A */
325N/A public static String NULL_PORTNAME() {
325N/A return localizer.localize(localizableNULL_PORTNAME());
325N/A }
325N/A
325N/A public static Localizable localizableNOTFOUND_SERVICE_IN_WSDL(Object arg0, Object arg1) {
325N/A return messageFactory.getMessage("notfound.service.in.wsdl", arg0, arg1);
325N/A }
325N/A
325N/A /**
325N/A * Service: {0} not found in WSDL: {1}
325N/A *
325N/A */
325N/A public static String NOTFOUND_SERVICE_IN_WSDL(Object arg0, Object arg1) {
325N/A return localizer.localize(localizableNOTFOUND_SERVICE_IN_WSDL(arg0, arg1));
325N/A }
325N/A
325N/A public static Localizable localizableNULL_EPR() {
325N/A return messageFactory.getMessage("null.epr");
325N/A }
325N/A
325N/A /**
325N/A * EndpointReference is null
325N/A *
325N/A */
325N/A public static String NULL_EPR() {
325N/A return localizer.localize(localizableNULL_EPR());
325N/A }
325N/A
325N/A public static Localizable localizableNULL_WSDL() {
325N/A return messageFactory.getMessage("null.wsdl");
325N/A }
325N/A
325N/A /**
325N/A * EPR does n't have WSDL Metadata which is needed for the current operation
325N/A *
325N/A */
325N/A public static String NULL_WSDL() {
325N/A return localizer.localize(localizableNULL_WSDL());
325N/A }
325N/A
325N/A public static Localizable localizableNOTFOUND_PORT_IN_WSDL(Object arg0, Object arg1, Object arg2) {
325N/A return messageFactory.getMessage("notfound.port.in.wsdl", arg0, arg1, arg2);
325N/A }
325N/A
325N/A /**
325N/A * Port: {0} not a valid port in Service: {1} in WSDL: {2}
325N/A *
325N/A */
325N/A public static String NOTFOUND_PORT_IN_WSDL(Object arg0, Object arg1, Object arg2) {
325N/A return localizer.localize(localizableNOTFOUND_PORT_IN_WSDL(arg0, arg1, arg2));
325N/A }
325N/A
325N/A public static Localizable localizableERROR_WSDL(Object arg0) {
325N/A return messageFactory.getMessage("error.wsdl", arg0);
325N/A }
325N/A
325N/A /**
325N/A * Error in parsing WSDL: {0}
325N/A *
325N/A */
325N/A public static String ERROR_WSDL(Object arg0) {
325N/A return localizer.localize(localizableERROR_WSDL(arg0));
325N/A }
325N/A
325N/A}