All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.ws.resources.AddressingMessages Maven / Gradle / Ivy

There is a newer version: 4.0.4
Show 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 AddressingMessages {

    private final static String BUNDLE_NAME = "com.sun.xml.ws.resources.addressing";
    private final static LocalizableMessageFactory MESSAGE_FACTORY = new LocalizableMessageFactory(BUNDLE_NAME, new AddressingMessages.BundleSupplier());
    private final static Localizer LOCALIZER = new Localizer();

    public static Localizable localizableADDRESSING_NOT_ENABLED(Object arg0) {
        return MESSAGE_FACTORY.getMessage("addressing.notEnabled", arg0);
    }

    /**
     * Addressing is not enabled, {0} should not be included in the pipeline"
     * 
     */
    public static String ADDRESSING_NOT_ENABLED(Object arg0) {
        return LOCALIZER.localize(localizableADDRESSING_NOT_ENABLED(arg0));
    }

    public static Localizable localizableWSAW_ANONYMOUS_PROHIBITED() {
        return MESSAGE_FACTORY.getMessage("wsaw.anonymousProhibited");
    }

    /**
     * Operation has "prohibited" value for wsaw:anonymous in the WSDL, Addressing must be disabled and SOAP message need to be hand-crafted
     * 
     */
    public static String WSAW_ANONYMOUS_PROHIBITED() {
        return LOCALIZER.localize(localizableWSAW_ANONYMOUS_PROHIBITED());
    }

    public static Localizable localizableNULL_SOAP_VERSION() {
        return MESSAGE_FACTORY.getMessage("null.soap.version");
    }

    /**
     * Unexpected null SOAP version
     * 
     */
    public static String NULL_SOAP_VERSION() {
        return LOCALIZER.localize(localizableNULL_SOAP_VERSION());
    }

    public static Localizable localizableNULL_HEADERS() {
        return MESSAGE_FACTORY.getMessage("null.headers");
    }

    /**
     * No headers found when processing the server inbound request and WS-Addressing is required
     * 
     */
    public static String NULL_HEADERS() {
        return LOCALIZER.localize(localizableNULL_HEADERS());
    }

    public static Localizable localizableFAULT_TO_CANNOT_PARSE() {
        return MESSAGE_FACTORY.getMessage("faultTo.cannot.parse");
    }

    /**
     * FaultTo header cannot be parsed
     * 
     */
    public static String FAULT_TO_CANNOT_PARSE() {
        return LOCALIZER.localize(localizableFAULT_TO_CANNOT_PARSE());
    }

    public static Localizable localizableNON_ANONYMOUS_RESPONSE_NULL_HEADERS(Object arg0) {
        return MESSAGE_FACTORY.getMessage("nonAnonymous.response.nullHeaders", arg0);
    }

    /**
     * No response headers found in non-anonymous response from "{0}"
     * 
     */
    public static String NON_ANONYMOUS_RESPONSE_NULL_HEADERS(Object arg0) {
        return LOCALIZER.localize(localizableNON_ANONYMOUS_RESPONSE_NULL_HEADERS(arg0));
    }

    public static Localizable localizableUNKNOWN_WSA_HEADER() {
        return MESSAGE_FACTORY.getMessage("unknown.wsa.header");
    }

    /**
     * Unknown WS-Addressing header
     * 
     */
    public static String UNKNOWN_WSA_HEADER() {
        return LOCALIZER.localize(localizableUNKNOWN_WSA_HEADER());
    }

    public static Localizable localizableINVALID_ADDRESSING_HEADER_EXCEPTION(Object arg0, Object arg1) {
        return MESSAGE_FACTORY.getMessage("invalid.addressing.header.exception", arg0, arg1);
    }

    /**
     * Invalid WS-Addressing header: "{0}",Reason: "{1}"
     * 
     */
    public static String INVALID_ADDRESSING_HEADER_EXCEPTION(Object arg0, Object arg1) {
        return LOCALIZER.localize(localizableINVALID_ADDRESSING_HEADER_EXCEPTION(arg0, arg1));
    }

    public static Localizable localizableNULL_WSDL_PORT() {
        return MESSAGE_FACTORY.getMessage("null.wsdlPort");
    }

    /**
     * Populating request Addressing headers and found null WSDLPort
     * 
     */
    public static String NULL_WSDL_PORT() {
        return LOCALIZER.localize(localizableNULL_WSDL_PORT());
    }

    public static Localizable localizableNON_ANONYMOUS_UNKNOWN_PROTOCOL(Object arg0) {
        return MESSAGE_FACTORY.getMessage("nonAnonymous.unknown.protocol", arg0);
    }

    /**
     * Unknown protocol: "{0}"
     * 
     */
    public static String NON_ANONYMOUS_UNKNOWN_PROTOCOL(Object arg0) {
        return LOCALIZER.localize(localizableNON_ANONYMOUS_UNKNOWN_PROTOCOL(arg0));
    }

    public static Localizable localizableNON_ANONYMOUS_RESPONSE_SENDING(Object arg0) {
        return MESSAGE_FACTORY.getMessage("nonAnonymous.response.sending", arg0);
    }

    /**
     * Sending non-anonymous reply to "{0}"
     * 
     */
    public static String NON_ANONYMOUS_RESPONSE_SENDING(Object arg0) {
        return LOCALIZER.localize(localizableNON_ANONYMOUS_RESPONSE_SENDING(arg0));
    }

    public static Localizable localizableNON_ANONYMOUS_RESPONSE() {
        return MESSAGE_FACTORY.getMessage("nonAnonymous.response");
    }

    /**
     * Sending 202 and processing non-anonymous response
     * 
     */
    public static String NON_ANONYMOUS_RESPONSE() {
        return LOCALIZER.localize(localizableNON_ANONYMOUS_RESPONSE());
    }

    public static Localizable localizableREPLY_TO_CANNOT_PARSE() {
        return MESSAGE_FACTORY.getMessage("replyTo.cannot.parse");
    }

    /**
     * ReplyTo header cannot be parsed
     * 
     */
    public static String REPLY_TO_CANNOT_PARSE() {
        return LOCALIZER.localize(localizableREPLY_TO_CANNOT_PARSE());
    }

    public static Localizable localizableINVALID_WSAW_ANONYMOUS(Object arg0) {
        return MESSAGE_FACTORY.getMessage("invalid.wsaw.anonymous", arg0);
    }

    /**
     * Invalid value obtained from wsaw:Anonymous: "{0}"
     * 
     */
    public static String INVALID_WSAW_ANONYMOUS(Object arg0) {
        return LOCALIZER.localize(localizableINVALID_WSAW_ANONYMOUS(arg0));
    }

    public static Localizable localizableVALIDATION_CLIENT_NULL_ACTION() {
        return MESSAGE_FACTORY.getMessage("validation.client.nullAction");
    }

    /**
     * Validating inbound Addressing headers on client and found null Action
     * 
     */
    public static String VALIDATION_CLIENT_NULL_ACTION() {
        return LOCALIZER.localize(localizableVALIDATION_CLIENT_NULL_ACTION());
    }

    public static Localizable localizableWSDL_BOUND_OPERATION_NOT_FOUND(Object arg0) {
        return MESSAGE_FACTORY.getMessage("wsdlBoundOperation.notFound", arg0);
    }

    /**
     * Cannot find an operation in wsdl:binding for "{0}"
     * 
     */
    public static String WSDL_BOUND_OPERATION_NOT_FOUND(Object arg0) {
        return LOCALIZER.localize(localizableWSDL_BOUND_OPERATION_NOT_FOUND(arg0));
    }

    public static Localizable localizableMISSING_HEADER_EXCEPTION(Object arg0) {
        return MESSAGE_FACTORY.getMessage("missing.header.exception", arg0);
    }

    /**
     * Missing WS-Addressing header: "{0}"
     * 
     */
    public static String MISSING_HEADER_EXCEPTION(Object arg0) {
        return LOCALIZER.localize(localizableMISSING_HEADER_EXCEPTION(arg0));
    }

    public static Localizable localizableNULL_BINDING() {
        return MESSAGE_FACTORY.getMessage("null.binding");
    }

    /**
     * Populating request Addressing headers and found null Binding
     * 
     */
    public static String NULL_BINDING() {
        return LOCALIZER.localize(localizableNULL_BINDING());
    }

    public static Localizable localizableNULL_WSA_HEADERS() {
        return MESSAGE_FACTORY.getMessage("null.wsa.headers");
    }

    /**
     * No WS-Addressing headers found processing the server inbound request
     * 
     */
    public static String NULL_WSA_HEADERS() {
        return LOCALIZER.localize(localizableNULL_WSA_HEADERS());
    }

    public static Localizable localizableNON_ANONYMOUS_RESPONSE_ONEWAY() {
        return MESSAGE_FACTORY.getMessage("nonAnonymous.response.oneway");
    }

    /**
     * Ignoring non-anonymous response for one-way message
     * 
     */
    public static String NON_ANONYMOUS_RESPONSE_ONEWAY() {
        return LOCALIZER.localize(localizableNON_ANONYMOUS_RESPONSE_ONEWAY());
    }

    public static Localizable localizableVALIDATION_SERVER_NULL_ACTION() {
        return MESSAGE_FACTORY.getMessage("validation.server.nullAction");
    }

    /**
     * Validating inbound Addressing headers on server and found null Action
     * 
     */
    public static String VALIDATION_SERVER_NULL_ACTION() {
        return LOCALIZER.localize(localizableVALIDATION_SERVER_NULL_ACTION());
    }

    public static Localizable localizableWRONG_ADDRESSING_VERSION(Object arg0, Object arg1) {
        return MESSAGE_FACTORY.getMessage("wrong.addressing.version", arg0, arg1);
    }

    /**
     * Expected "{0}" version of WS-Addressing but found "{1}"
     * 
     */
    public static String WRONG_ADDRESSING_VERSION(Object arg0, Object arg1) {
        return LOCALIZER.localize(localizableWRONG_ADDRESSING_VERSION(arg0, arg1));
    }

    public static Localizable localizableACTION_NOT_SUPPORTED_EXCEPTION(Object arg0) {
        return MESSAGE_FACTORY.getMessage("action.not.supported.exception", arg0);
    }

    /**
     * Action: "{0}" not supported
     * 
     */
    public static String ACTION_NOT_SUPPORTED_EXCEPTION(Object arg0) {
        return LOCALIZER.localize(localizableACTION_NOT_SUPPORTED_EXCEPTION(arg0));
    }

    public static Localizable localizableNULL_MESSAGE() {
        return MESSAGE_FACTORY.getMessage("null.message");
    }

    /**
     * Null message found when processing the server inbound request and WS-Addressing is required
     * 
     */
    public static String NULL_MESSAGE() {
        return LOCALIZER.localize(localizableNULL_MESSAGE());
    }

    public static Localizable localizableADDRESSING_SHOULD_BE_ENABLED() {
        return MESSAGE_FACTORY.getMessage("addressing.should.be.enabled.");
    }

    /**
     * Addressing is not enabled
     * 
     */
    public static String ADDRESSING_SHOULD_BE_ENABLED() {
        return LOCALIZER.localize(localizableADDRESSING_SHOULD_BE_ENABLED());
    }

    public static Localizable localizableNULL_PACKET() {
        return MESSAGE_FACTORY.getMessage("null.packet");
    }

    /**
     * Populating request Addressing headers and found null Packet
     * 
     */
    public static String NULL_PACKET() {
        return LOCALIZER.localize(localizableNULL_PACKET());
    }

    public static Localizable localizableNULL_ADDRESSING_VERSION() {
        return MESSAGE_FACTORY.getMessage("null.addressing.version");
    }

    /**
     * Unexpected null Addressing version
     * 
     */
    public static String NULL_ADDRESSING_VERSION() {
        return LOCALIZER.localize(localizableNULL_ADDRESSING_VERSION());
    }

    public static Localizable localizableNULL_ACTION() {
        return MESSAGE_FACTORY.getMessage("null.action");
    }

    /**
     * Populating request Addressing headers and found null Action
     * 
     */
    public static String NULL_ACTION() {
        return LOCALIZER.localize(localizableNULL_ACTION());
    }

    public static Localizable localizableNON_UNIQUE_OPERATION_SIGNATURE(Object arg0, Object arg1, Object arg2, Object arg3) {
        return MESSAGE_FACTORY.getMessage("non.unique.operation.signature", arg0, arg1, arg2, arg3);
    }

    /**
     * Operations in a port should have unique operation signature to successfuly identify a associated wsdl operation for a message. WSDL operation {0} and {1} have the same operation signature, wsa:Action "{2}" and request body block "{3}", Method dispatching may fail at runtime. Use unique wsa:Action for each operation
     * 
     */
    public static String NON_UNIQUE_OPERATION_SIGNATURE(Object arg0, Object arg1, Object arg2, Object arg3) {
        return LOCALIZER.localize(localizableNON_UNIQUE_OPERATION_SIGNATURE(arg0, arg1, arg2, arg3));
    }

    private static class BundleSupplier
        implements ResourceBundleSupplier
    {


        public ResourceBundle getResourceBundle(Locale locale) {
            return ResourceBundle.getBundle(BUNDLE_NAME, locale);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy