com.sun.xml.ws.resources.XmlmessageMessages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rt Show documentation
Show all versions of rt Show documentation
JAX-WS Reference Implementation Runtime
The newest version!
/*
* 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 XmlmessageMessages {
private static final String BUNDLE_NAME = "com.sun.xml.ws.resources.xmlmessage";
private static final LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new XmlmessageMessages.BundleSupplier());
private static final Localizer LOCALIZER = new Localizer();
private XmlmessageMessages() {
}
public static Localizable localizableXML_INVALID_CONTENT_TYPE(Object arg0) {
return MESSAGE_FACTORY.getMessage("xml.invalid.content-type", arg0);
}
/**
* Invalid Content-Type: {0}
*
*/
public static String XML_INVALID_CONTENT_TYPE(Object arg0) {
return LOCALIZER.localize(localizableXML_INVALID_CONTENT_TYPE(arg0));
}
public static Localizable localizableXML_GET_SOURCE_ERR() {
return MESSAGE_FACTORY.getMessage("xml.get.source.err");
}
/**
* Couldn't return Source
*
*/
public static String XML_GET_SOURCE_ERR() {
return LOCALIZER.localize(localizableXML_GET_SOURCE_ERR());
}
public static Localizable localizableXML_UNKNOWN_CONTENT_TYPE() {
return MESSAGE_FACTORY.getMessage("xml.unknown.Content-Type");
}
/**
* Unrecognized Content-Type
*
*/
public static String XML_UNKNOWN_CONTENT_TYPE() {
return LOCALIZER.localize(localizableXML_UNKNOWN_CONTENT_TYPE());
}
public static Localizable localizableXML_SET_PAYLOAD_ERR() {
return MESSAGE_FACTORY.getMessage("xml.set.payload.err");
}
/**
* Couldn't set Payload in XMLMessage
*
*/
public static String XML_SET_PAYLOAD_ERR() {
return LOCALIZER.localize(localizableXML_SET_PAYLOAD_ERR());
}
public static Localizable localizableXML_ROOT_PART_INVALID_CONTENT_TYPE(Object arg0) {
return MESSAGE_FACTORY.getMessage("xml.root.part.invalid.Content-Type", arg0);
}
/**
* Bad Content-Type for Root Part : {0}
*
*/
public static String XML_ROOT_PART_INVALID_CONTENT_TYPE(Object arg0) {
return LOCALIZER.localize(localizableXML_ROOT_PART_INVALID_CONTENT_TYPE(arg0));
}
public static Localizable localizableXML_GET_DS_ERR() {
return MESSAGE_FACTORY.getMessage("xml.get.ds.err");
}
/**
* Couldn't get DataSource
*
*/
public static String XML_GET_DS_ERR() {
return LOCALIZER.localize(localizableXML_GET_DS_ERR());
}
public static Localizable localizableXML_CANNOT_INTERNALIZE_MESSAGE() {
return MESSAGE_FACTORY.getMessage("xml.cannot.internalize.message");
}
/**
* Cannot create XMLMessage
*
*/
public static String XML_CANNOT_INTERNALIZE_MESSAGE() {
return LOCALIZER.localize(localizableXML_CANNOT_INTERNALIZE_MESSAGE());
}
public static Localizable localizableXML_CONTENT_TYPE_PARSE_ERR() {
return MESSAGE_FACTORY.getMessage("xml.Content-Type.parse.err");
}
/**
* Error while parsing MimeHeaders for Content-Type
*
*/
public static String XML_CONTENT_TYPE_PARSE_ERR() {
return LOCALIZER.localize(localizableXML_CONTENT_TYPE_PARSE_ERR());
}
public static Localizable localizableXML_NULL_HEADERS() {
return MESSAGE_FACTORY.getMessage("xml.null.headers");
}
/**
* Invalid argument. MimeHeaders=null
*
*/
public static String XML_NULL_HEADERS() {
return LOCALIZER.localize(localizableXML_NULL_HEADERS());
}
public static Localizable localizableXML_NO_CONTENT_TYPE() {
return MESSAGE_FACTORY.getMessage("xml.no.Content-Type");
}
/**
* MimeHeaders doesn't contain Content-Type header
*
*/
public static String XML_NO_CONTENT_TYPE() {
return LOCALIZER.localize(localizableXML_NO_CONTENT_TYPE());
}
public static Localizable localizableXML_CONTENT_TYPE_MUSTBE_MULTIPART() {
return MESSAGE_FACTORY.getMessage("xml.content-type.mustbe.multipart");
}
/**
* Content-Type needs to be Multipart/Related and with type=text/xml
*
*/
public static String XML_CONTENT_TYPE_MUSTBE_MULTIPART() {
return LOCALIZER.localize(localizableXML_CONTENT_TYPE_MUSTBE_MULTIPART());
}
private static class BundleSupplier
implements ResourceBundleSupplier
{
public ResourceBundle getResourceBundle(Locale locale) {
return ResourceBundle.getBundle(BUNDLE_NAME, locale);
}
}
}