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.developer; ohair@286: ohair@286: import java.lang.annotation.Documented; ohair@286: import java.lang.annotation.Target; ohair@286: import java.lang.annotation.ElementType; ohair@286: import java.lang.annotation.Retention; ohair@286: import java.lang.annotation.RetentionPolicy; ohair@286: ohair@286: import javax.xml.ws.spi.WebServiceFeatureAnnotation; ohair@286: ohair@286: /** ohair@286: * This feature represents the use of WS-Addressing with either ohair@286: * the SOAP 1.1/HTTP or SOAP 1.2/HTTP binding. Using this feature ohair@286: * with any other binding is NOT required. ohair@286: *

ohair@286: * Enabling this feature will result in the ohair@286: * wsaw:UsingAddressing element being added to the ohair@286: * wsdl:Binding for ohair@286: * the endpoint and in the runtime being capable of responding to ohair@286: * WS-Addressing headers. ohair@286: *

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

ohair@286: *

ohair@286: * The {@link #required} property can be used to ohair@286: * specify if the required attribute on the ohair@286: * wsaw:UsingAddressing element should ohair@286: * be true or false. By default the ohair@286: * wsdl:required parameter is false. ohair@286: * ohair@286: * See WS-Addressing ohair@286: * for more information on WS-Addressing. ohair@286: * See WS-Addressing - WSDL 1.0 ohair@286: * for more information on wsaw:UsingAddressing. ohair@286: * ohair@286: * @since JAX-WS 2.1 ohair@286: */ ohair@286: @Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) ohair@286: @Retention(RetentionPolicy.RUNTIME) ohair@286: @Documented ohair@286: @WebServiceFeatureAnnotation(id= MemberSubmissionAddressingFeature.ID,bean=MemberSubmissionAddressingFeature.class) ohair@286: public @interface MemberSubmissionAddressing { ohair@286: /** ohair@286: * Specifies if this feature is enabled or disabled. ohair@286: */ ohair@286: boolean enabled() default true; ohair@286: ohair@286: /** ohair@286: * Property to determine the value of the ohair@286: * wsdl:required attribute on ohair@286: * wsaw:UsingAddressing element in the WSDL. ohair@286: */ ohair@286: boolean required() default false; ohair@286: ohair@286: /** ohair@286: * Property to determine if the incoming messsages should be checked for conformance ohair@286: * with MemberSubmission version of WS-Addressing. ohair@286: * ohair@286: * If Validation.LAX, then some WS-Adressing headers are not strictly checked. ohair@286: */ ohair@286: public enum Validation { LAX, STRICT } ohair@286: ohair@286: Validation validation() default Validation.LAX; ohair@286: ohair@286: }