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

com.sun.xml.ws.rx.rm.faults.WsrmRequiredException Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2010, 2021 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.rx.rm.faults;

import com.sun.xml.ws.rx.rm.runtime.RmRuntimeVersion;
import com.sun.xml.ws.rx.rm.runtime.RuntimeContext;
import javax.xml.namespace.QName;
import jakarta.xml.soap.Detail;

/**
 *
 * @author Marek Potociar (marek.potociar at sun.com)
 */
public class WsrmRequiredException extends AbstractSoapFaultException {

    private static final long serialVersionUID = -5531849720054053271L;

    public WsrmRequiredException() {
        super("The RM Destination requires the use of WSRM.", "The RM Destination requires the use of WSRM.", true);
    }

    @Override
    public Code getCode() {
        return Code.Sender;
    }

    @Override
    public QName getSubcode(RmRuntimeVersion rv) {
        return rv.protocolVersion.wsrmRequiredFaultCode;
    }

    @Override
    public Detail getDetail(RuntimeContext rc) {
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy