/* * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package javax.xml.ws; import javax.xml.ws.soap.AddressingFeature; /** * This feature clarifies the use of the {@code wsdl:binding} * in a JAX-WS runtime. * * This feature can be used during the creation of SEI proxy, and * {@link Dispatch} instances on the client side and {@link Endpoint} * instances on the server side. This feature cannot be used for {@link Service} * instance creation on the client side. *

* This feature is only useful with web services that have an * associated WSDL. Enabling this feature requires that a JAX-WS * implementation inspect the {@code wsdl:binding} for an * endpoint at runtime to make sure that all {@code wsdl:extensions} * that have the {@code required} attribute set to {@code true} * are understood and are being used. *

* The following describes the affects of this feature with respect * to be enabled or disabled: *

* * @see AddressingFeature * * @since 1.6, JAX-WS 2.1 */ public final class RespectBindingFeature extends WebServiceFeature { /** * * Constant value identifying the RespectBindingFeature */ public static final String ID = "javax.xml.ws.RespectBindingFeature"; /** * Creates an {@code RespectBindingFeature}. * The instance created will be enabled. */ public RespectBindingFeature() { this.enabled = true; } /** * Creates an RespectBindingFeature * * @param enabled specifies whether this feature should * be enabled or not. */ public RespectBindingFeature(boolean enabled) { this.enabled = enabled; } /** * {@inheritDoc} */ public String getID() { return ID; } }