com.sun.xml.ws.resources.PolicyMessages Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxws-rt Show documentation
Show all versions of jaxws-rt Show documentation
JAX-WS Runtime with module descriptor
/*
* 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 PolicyMessages {
private static final String BUNDLE_NAME = "com.sun.xml.ws.resources.policy";
private static final LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new PolicyMessages.BundleSupplier());
private static final Localizer LOCALIZER = new Localizer();
private PolicyMessages() {
}
public static Localizable localizableWSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT", arg0);
}
/**
* WSP1013: Exception occurred while reading policy element. Following was read so far: {0}.
*
*/
public static String WSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(Object arg0) {
return LOCALIZER.localize(localizableWSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(arg0));
}
public static Localizable localizableWSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE() {
return MESSAGE_FACTORY.getMessage("WSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE");
}
/**
* WSP1001: XMLStreamException occurred when reading policy reference element.
*
*/
public static String WSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE() {
return LOCALIZER.localize(localizableWSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE());
}
public static Localizable localizableWSP_1014_CAN_NOT_FIND_POLICY(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1014_CAN_NOT_FIND_POLICY", arg0);
}
/**
* WSP1014: Can not find policy "{0}" that is referenced in from the WSDL. Please, check your policy references in the WSDL.
*
*/
public static String WSP_1014_CAN_NOT_FIND_POLICY(Object arg0) {
return LOCALIZER.localize(localizableWSP_1014_CAN_NOT_FIND_POLICY(arg0));
}
public static Localizable localizableWSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL() {
return MESSAGE_FACTORY.getMessage("WSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL");
}
/**
* WSP1009: Policy map was null, not marshalling any policies.
*
*/
public static String WSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL() {
return LOCALIZER.localize(localizableWSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL());
}
public static Localizable localizableWSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT", arg0);
}
/**
* WSP1011: Failed to retrieve effective policy for subject: {0}.
*
*/
public static String WSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(Object arg0) {
return LOCALIZER.localize(localizableWSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(arg0));
}
public static Localizable localizableWSP_1016_POLICY_ID_NULL_OR_DUPLICATE(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1016_POLICY_ID_NULL_OR_DUPLICATE", arg0);
}
/**
* WSP1016: The policy is not added because it has no ID or a policy with the same ID was already added: {0}.
*
*/
public static String WSP_1016_POLICY_ID_NULL_OR_DUPLICATE(Object arg0) {
return LOCALIZER.localize(localizableWSP_1016_POLICY_ID_NULL_OR_DUPLICATE(arg0));
}
public static Localizable localizableWSP_1021_FAULT_NOT_BOUND(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1021_FAULT_NOT_BOUND", arg0);
}
/**
* WSP1021: Fault "{0}" not bound. Check names in port and binding definitions.
*
*/
public static String WSP_1021_FAULT_NOT_BOUND(Object arg0) {
return LOCALIZER.localize(localizableWSP_1021_FAULT_NOT_BOUND(arg0));
}
public static Localizable localizableWSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(Object arg0, Object arg1) {
return MESSAGE_FACTORY.getMessage("WSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME", arg0, arg1);
}
/**
* WSP1003: Unable to check element name for class "{0}" and WSDL name "{1}".
*
*/
public static String WSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(Object arg0, Object arg1) {
return LOCALIZER.localize(localizableWSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(arg0, arg1));
}
public static Localizable localizableWSP_1019_CREATE_EMPTY_POLICY_MAP() {
return MESSAGE_FACTORY.getMessage("WSP_1019_CREATE_EMPTY_POLICY_MAP");
}
/**
* WSP1019: Failed to find any configuration file. Creating new empty policy map.
*
*/
public static String WSP_1019_CREATE_EMPTY_POLICY_MAP() {
return LOCALIZER.localize(localizableWSP_1019_CREATE_EMPTY_POLICY_MAP());
}
public static Localizable localizableWSP_1020_DUPLICATE_ID(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1020_DUPLICATE_ID", arg0);
}
/**
* WSP1020: Found two policies in one document with the same id: "{0}".
*
*/
public static String WSP_1020_DUPLICATE_ID(Object arg0) {
return LOCALIZER.localize(localizableWSP_1020_DUPLICATE_ID(arg0));
}
public static Localizable localizableWSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE() {
return MESSAGE_FACTORY.getMessage("WSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE");
}
/**
* WSP1002: Unable to marshall policy or it's reference. See original exception for more details.
*
*/
public static String WSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE() {
return LOCALIZER.localize(localizableWSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE());
}
public static Localizable localizableWSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL", arg0);
}
/**
* WSP1008: Not marshalling policy, wsdl subject is null for "{0}".
*
*/
public static String WSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(Object arg0) {
return LOCALIZER.localize(localizableWSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(arg0));
}
public static Localizable localizableWSP_1017_MAP_UPDATE_FAILED() {
return MESSAGE_FACTORY.getMessage("WSP_1017_MAP_UPDATE_FAILED");
}
/**
* WSP1048: Policy map setup failed - exception occurred while trying to modify policy map content.
*
*/
public static String WSP_1017_MAP_UPDATE_FAILED() {
return LOCALIZER.localize(localizableWSP_1017_MAP_UPDATE_FAILED());
}
public static Localizable localizableWSP_1018_FAILED_TO_MARSHALL_POLICY(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1018_FAILED_TO_MARSHALL_POLICY", arg0);
}
/**
* WSP1018: Failed to marshal policy "{0}".
*
*/
public static String WSP_1018_FAILED_TO_MARSHALL_POLICY(Object arg0) {
return LOCALIZER.localize(localizableWSP_1018_FAILED_TO_MARSHALL_POLICY(arg0));
}
public static Localizable localizableWSP_1004_POLICY_URIS_CAN_NOT_BE_NULL() {
return MESSAGE_FACTORY.getMessage("WSP_1004_POLICY_URIS_CAN_NOT_BE_NULL");
}
/**
* WSP1004: Policy URIs can not be null.
*
*/
public static String WSP_1004_POLICY_URIS_CAN_NOT_BE_NULL() {
return LOCALIZER.localize(localizableWSP_1004_POLICY_URIS_CAN_NOT_BE_NULL());
}
public static Localizable localizableWSP_1010_NO_POLICIES_DEFINED() {
return MESSAGE_FACTORY.getMessage("WSP_1010_NO_POLICIES_DEFINED");
}
/**
* WSP1010: No policies defined.
*
*/
public static String WSP_1010_NO_POLICIES_DEFINED() {
return LOCALIZER.localize(localizableWSP_1010_NO_POLICIES_DEFINED());
}
public static Localizable localizableWSP_1012_FAILED_CONFIGURE_WSDL_MODEL() {
return MESSAGE_FACTORY.getMessage("WSP_1012_FAILED_CONFIGURE_WSDL_MODEL");
}
/**
* WSP1012: Failed to configure wsdl model.
*
*/
public static String WSP_1012_FAILED_CONFIGURE_WSDL_MODEL() {
return LOCALIZER.localize(localizableWSP_1012_FAILED_CONFIGURE_WSDL_MODEL());
}
public static Localizable localizableWSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(Object arg0, Object arg1) {
return MESSAGE_FACTORY.getMessage("WSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED", arg0, arg1);
}
/**
* WSP1015: Server side assertion validation failed for "{0}" assertion. Assertion was evaluated as "{1}".
*
*/
public static String WSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(Object arg0, Object arg1) {
return LOCALIZER.localize(localizableWSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(arg0, arg1));
}
public static Localizable localizableWSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(Object arg0) {
return MESSAGE_FACTORY.getMessage("WSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST", arg0);
}
/**
* WSP1005: Failed to find policy referenced by URI "{0}".
*
*/
public static String WSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(Object arg0) {
return LOCALIZER.localize(localizableWSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(arg0));
}
public static Localizable localizableWSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL() {
return MESSAGE_FACTORY.getMessage("WSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL");
}
/**
* WSP1006: Policy map extender can not be null.
*
*/
public static String WSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL() {
return LOCALIZER.localize(localizableWSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL());
}
public static Localizable localizableWSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL() {
return MESSAGE_FACTORY.getMessage("WSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL");
}
/**
* WSP1007: Policy exception occurred when finishing WSDL parsing.
*
*/
public static String WSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL() {
return LOCALIZER.localize(localizableWSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL());
}
private static class BundleSupplier
implements ResourceBundleSupplier
{
public ResourceBundle getResourceBundle(Locale locale) {
return ResourceBundle.getBundle(BUNDLE_NAME, locale);
}
}
}