ohair@286: /* alanb@368: * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. ohair@286: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@286: * ohair@286: * This code is free software; you can redistribute it and/or modify it ohair@286: * under the terms of the GNU General Public License version 2 only, as ohair@286: * published by the Free Software Foundation. Oracle designates this ohair@286: * particular file as subject to the "Classpath" exception as provided ohair@286: * by Oracle in the LICENSE file that accompanied this code. ohair@286: * ohair@286: * This code is distributed in the hope that it will be useful, but WITHOUT ohair@286: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@286: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@286: * version 2 for more details (a copy is included in the LICENSE file that ohair@286: * accompanied this code). ohair@286: * ohair@286: * You should have received a copy of the GNU General Public License version ohair@286: * 2 along with this work; if not, write to the Free Software Foundation, ohair@286: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@286: * ohair@286: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@286: * or visit www.oracle.com if you need additional information or have any ohair@286: * questions. ohair@286: */ ohair@286: ohair@286: package com.sun.xml.internal.ws.resources; ohair@286: alanb@368: import com.sun.istack.internal.localization.Localizable; alanb@368: import com.sun.istack.internal.localization.LocalizableMessageFactory; alanb@368: import com.sun.istack.internal.localization.Localizer; ohair@286: ohair@286: ohair@286: /** ohair@286: * Defines string formatting method for each constant in the resource file ohair@286: * ohair@286: */ ohair@286: public final class PolicyMessages { ohair@286: ohair@286: private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.policy"); ohair@286: private final static Localizer localizer = new Localizer(); ohair@286: ohair@286: public static Localizable localizableWSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL() { ohair@286: return messageFactory.getMessage("WSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1007: Policy exception occurred when finishing WSDL parsing. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL() { ohair@286: return localizer.localize(localizableWSP_1007_POLICY_EXCEPTION_WHILE_FINISHING_PARSING_WSDL()); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE() { ohair@286: return messageFactory.getMessage("WSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1002: Unable to marshall policy or it's reference. See original exception for more details. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE() { ohair@286: return localizer.localize(localizableWSP_1002_UNABLE_TO_MARSHALL_POLICY_OR_POLICY_REFERENCE()); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(Object arg0, Object arg1) { ohair@286: return messageFactory.getMessage("WSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED", arg0, arg1); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1015: Server side assertion validation failed for "{0}" assertion. Assertion was evaluated as "{1}". ohair@286: * ohair@286: */ ohair@286: public static String WSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(Object arg0, Object arg1) { ohair@286: return localizer.localize(localizableWSP_1015_SERVER_SIDE_ASSERTION_VALIDATION_FAILED(arg0, arg1)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1017_MAP_UPDATE_FAILED() { ohair@286: return messageFactory.getMessage("WSP_1017_MAP_UPDATE_FAILED"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1048: Policy map setup failed - exception occurred while trying to modify policy map content. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1017_MAP_UPDATE_FAILED() { ohair@286: return localizer.localize(localizableWSP_1017_MAP_UPDATE_FAILED()); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1010_NO_POLICIES_DEFINED() { ohair@286: return messageFactory.getMessage("WSP_1010_NO_POLICIES_DEFINED"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1010: No policies defined. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1010_NO_POLICIES_DEFINED() { ohair@286: return localizer.localize(localizableWSP_1010_NO_POLICIES_DEFINED()); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(Object arg0) { ohair@286: return messageFactory.getMessage("WSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL", arg0); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1008: Not marshalling policy, wsdl subject is null for "{0}". ohair@286: * ohair@286: */ ohair@286: public static String WSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(Object arg0) { ohair@286: return localizer.localize(localizableWSP_1008_NOT_MARSHALLING_WSDL_SUBJ_NULL(arg0)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL() { ohair@286: return messageFactory.getMessage("WSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1009: Policy map was null, not marshalling any policies. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL() { ohair@286: return localizer.localize(localizableWSP_1009_NOT_MARSHALLING_ANY_POLICIES_POLICY_MAP_IS_NULL()); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1020_DUPLICATE_ID(Object arg0) { ohair@286: return messageFactory.getMessage("WSP_1020_DUPLICATE_ID", arg0); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1020: Found two policies in one document with the same id: "{0}". ohair@286: * ohair@286: */ ohair@286: public static String WSP_1020_DUPLICATE_ID(Object arg0) { ohair@286: return localizer.localize(localizableWSP_1020_DUPLICATE_ID(arg0)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(Object arg0, Object arg1) { ohair@286: return messageFactory.getMessage("WSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME", arg0, arg1); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1003: Unable to check element name for class "{0}" and WSDL name "{1}". ohair@286: * ohair@286: */ ohair@286: public static String WSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(Object arg0, Object arg1) { ohair@286: return localizer.localize(localizableWSP_1003_UNABLE_TO_CHECK_ELEMENT_NAME(arg0, arg1)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(Object arg0) { ohair@286: return messageFactory.getMessage("WSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT", arg0); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1013: Exception occurred while reading policy element. Following was read so far: {0}. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(Object arg0) { ohair@286: return localizer.localize(localizableWSP_1013_EXCEPTION_WHEN_READING_POLICY_ELEMENT(arg0)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL() { ohair@286: return messageFactory.getMessage("WSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1006: Policy map extender can not be null. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL() { ohair@286: return localizer.localize(localizableWSP_1006_POLICY_MAP_EXTENDER_CAN_NOT_BE_NULL()); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1018_FAILED_TO_MARSHALL_POLICY(Object arg0) { ohair@286: return messageFactory.getMessage("WSP_1018_FAILED_TO_MARSHALL_POLICY", arg0); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1018: Failed to marshal policy "{0}". ohair@286: * ohair@286: */ ohair@286: public static String WSP_1018_FAILED_TO_MARSHALL_POLICY(Object arg0) { ohair@286: return localizer.localize(localizableWSP_1018_FAILED_TO_MARSHALL_POLICY(arg0)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(Object arg0) { ohair@286: return messageFactory.getMessage("WSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST", arg0); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1005: Failed to find policy referenced by URI "{0}". ohair@286: * ohair@286: */ ohair@286: public static String WSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(Object arg0) { ohair@286: return localizer.localize(localizableWSP_1005_POLICY_REFERENCE_DOES_NOT_EXIST(arg0)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1016_POLICY_ID_NULL_OR_DUPLICATE(Object arg0) { ohair@286: return messageFactory.getMessage("WSP_1016_POLICY_ID_NULL_OR_DUPLICATE", arg0); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1016: The policy is not added because it has no ID or a policy with the same ID was already added: {0}. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1016_POLICY_ID_NULL_OR_DUPLICATE(Object arg0) { ohair@286: return localizer.localize(localizableWSP_1016_POLICY_ID_NULL_OR_DUPLICATE(arg0)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1014_CAN_NOT_FIND_POLICY(Object arg0) { ohair@286: return messageFactory.getMessage("WSP_1014_CAN_NOT_FIND_POLICY", arg0); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1014: Can not find policy "{0}" that is referenced in from the WSDL. Please, check your policy references in the WSDL. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1014_CAN_NOT_FIND_POLICY(Object arg0) { ohair@286: return localizer.localize(localizableWSP_1014_CAN_NOT_FIND_POLICY(arg0)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1012_FAILED_CONFIGURE_WSDL_MODEL() { ohair@286: return messageFactory.getMessage("WSP_1012_FAILED_CONFIGURE_WSDL_MODEL"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1012: Failed to configure wsdl model. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1012_FAILED_CONFIGURE_WSDL_MODEL() { ohair@286: return localizer.localize(localizableWSP_1012_FAILED_CONFIGURE_WSDL_MODEL()); ohair@286: } ohair@286: alanb@368: public static Localizable localizableWSP_1021_FAULT_NOT_BOUND(Object arg0) { alanb@368: return messageFactory.getMessage("WSP_1021_FAULT_NOT_BOUND", arg0); alanb@368: } alanb@368: alanb@368: /** alanb@368: * WSP1021: Fault "{0}" not bound. Check names in port and binding definitions. alanb@368: * alanb@368: */ alanb@368: public static String WSP_1021_FAULT_NOT_BOUND(Object arg0) { alanb@368: return localizer.localize(localizableWSP_1021_FAULT_NOT_BOUND(arg0)); alanb@368: } alanb@368: ohair@286: public static Localizable localizableWSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(Object arg0) { ohair@286: return messageFactory.getMessage("WSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT", arg0); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1011: Failed to retrieve effective policy for subject: {0}. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(Object arg0) { ohair@286: return localizer.localize(localizableWSP_1011_FAILED_TO_RETRIEVE_EFFECTIVE_POLICY_FOR_SUBJECT(arg0)); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1019_CREATE_EMPTY_POLICY_MAP() { ohair@286: return messageFactory.getMessage("WSP_1019_CREATE_EMPTY_POLICY_MAP"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1019: Failed to find any configuration file. Creating new empty policy map. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1019_CREATE_EMPTY_POLICY_MAP() { ohair@286: return localizer.localize(localizableWSP_1019_CREATE_EMPTY_POLICY_MAP()); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE() { ohair@286: return messageFactory.getMessage("WSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1001: XMLStreamException occurred when reading policy reference element. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE() { ohair@286: return localizer.localize(localizableWSP_1001_XML_EXCEPTION_WHEN_PROCESSING_POLICY_REFERENCE()); ohair@286: } ohair@286: ohair@286: public static Localizable localizableWSP_1004_POLICY_URIS_CAN_NOT_BE_NULL() { ohair@286: return messageFactory.getMessage("WSP_1004_POLICY_URIS_CAN_NOT_BE_NULL"); ohair@286: } ohair@286: ohair@286: /** ohair@286: * WSP1004: Policy URIs can not be null. ohair@286: * ohair@286: */ ohair@286: public static String WSP_1004_POLICY_URIS_CAN_NOT_BE_NULL() { ohair@286: return localizer.localize(localizableWSP_1004_POLICY_URIS_CAN_NOT_BE_NULL()); ohair@286: } ohair@286: ohair@286: }