Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxws/src/share/jaxws_classes/javax/xml/ws/WebServiceFeature.java
38890 views
/*1* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.xml.ws;262728/**29* A WebServiceFeature is used to represent a feature that can be30* enabled or disabled for a web service.31* <p>32* The JAX-WS specification will define some standard features and33* JAX-WS implementors are free to define additional features if34* necessary. Vendor specific features may not be portable so35* caution should be used when using them. Each Feature definition36* MUST define a <code>public static final String ID</code>37* that can be used in the Feature annotation to refer38* to the feature. This ID MUST be unique across all features39* of all vendors. When defining a vendor specific feature ID,40* use a vendor specific namespace in the ID string.41*42* @see javax.xml.ws.RespectBindingFeature43* @see javax.xml.ws.soap.AddressingFeature44* @see javax.xml.ws.soap.MTOMFeature45*46* @since 2.147*/48public abstract class WebServiceFeature {49/**50* Each Feature definition MUST define a public static final51* String ID that can be used in the Feature annotation to refer52* to the feature.53*/54// public static final String ID = "some unique feature Identifier";5556/**57* Get the unique identifier for this WebServiceFeature.58*59* @return the unique identifier for this feature.60*/61public abstract String getID();6263/**64* Specifies if the feature is enabled or disabled65*/66protected boolean enabled = false;676869protected WebServiceFeature(){}707172/**73* Returns <code>true</code> if this feature is enabled.74*75* @return <code>true</code> if and only if the feature is enabled .76*/77public boolean isEnabled() {78return enabled;79}80}818283