src/share/jaxws_classes/com/sun/xml/internal/ws/developer/MemberSubmissionAddressing.java

changeset 0
373ffda63c9a
child 637
9c07ef4934dd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/developer/MemberSubmissionAddressing.java	Wed Apr 27 01:27:09 2016 +0800
     1.3 @@ -0,0 +1,103 @@
     1.4 +/*
     1.5 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.  Oracle designates this
    1.11 + * particular file as subject to the "Classpath" exception as provided
    1.12 + * by Oracle in the LICENSE file that accompanied this code.
    1.13 + *
    1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 + * version 2 for more details (a copy is included in the LICENSE file that
    1.18 + * accompanied this code).
    1.19 + *
    1.20 + * You should have received a copy of the GNU General Public License version
    1.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 + *
    1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.25 + * or visit www.oracle.com if you need additional information or have any
    1.26 + * questions.
    1.27 + */
    1.28 +
    1.29 +package com.sun.xml.internal.ws.developer;
    1.30 +
    1.31 +import java.lang.annotation.Documented;
    1.32 +import java.lang.annotation.Target;
    1.33 +import java.lang.annotation.ElementType;
    1.34 +import java.lang.annotation.Retention;
    1.35 +import java.lang.annotation.RetentionPolicy;
    1.36 +
    1.37 +import javax.xml.ws.spi.WebServiceFeatureAnnotation;
    1.38 +
    1.39 +/**
    1.40 + * This feature represents the use of WS-Addressing with either
    1.41 + * the SOAP 1.1/HTTP or SOAP 1.2/HTTP binding.  Using this feature
    1.42 + * with any other binding is NOT required.
    1.43 + * <p>
    1.44 + * Enabling this feature will result in the
    1.45 + * <code>wsaw:UsingAddressing</code> element being added to the
    1.46 + * <code>wsdl:Binding</code> for
    1.47 + * the endpoint and in the runtime being capable of responding to
    1.48 + * WS-Addressing headers.
    1.49 + * <p>
    1.50 + * The following describes the affects of this feature with respect
    1.51 + * to be enabled or disabled:
    1.52 + * <ul>
    1.53 + *  <li> ENABLED: In this Mode, Addressing will be enabled.
    1.54 + *       If there is not a WSDL associated with the Endpoint and
    1.55 + *       a WSDL is to be generated, it MUST be generated with the
    1.56 + *       wsaw:UsingAddressing element. At runtime, Addressing headers
    1.57 + *       MUST be consumed by the receiver and generated by the
    1.58 + *       sender even if the WSDL declares otherwise. The
    1.59 + *       mustUnderstand="0" attribute MUST be used on the Addressing
    1.60 + *       headers.
    1.61 + *  <li> DISABLED: In this Mode, Addressing will be disabled
    1.62 + *       even if an associated WSDL specifies otherwise. At runtime,
    1.63 + *       Addressing headers MUST NOT be used.
    1.64 + * </ul>
    1.65 + * <p>
    1.66 + * The {@link #required} property can be used to
    1.67 + * specify if the <code>required</code> attribute on the
    1.68 + * <code>wsaw:UsingAddressing</code> element should
    1.69 + * be <code>true</code> or <code>false</code>.  By default the
    1.70 + * <code>wsdl:required</code> parameter is <code>false</code>.
    1.71 + *
    1.72 + * See <a href="http://www.w3.org/TR/2006/REC-ws-addr-core-20060509/">WS-Addressing</a>
    1.73 + * for more information on WS-Addressing.
    1.74 + * See <a href="http://www.w3.org/TR/2006/CR-ws-addr-wsdl-20060529/">WS-Addressing - WSDL 1.0
    1.75 + * </a> for more information on <code>wsaw:UsingAddressing</code>.
    1.76 + *
    1.77 + * @since JAX-WS 2.1
    1.78 + */
    1.79 +@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
    1.80 +@Retention(RetentionPolicy.RUNTIME)
    1.81 +@Documented
    1.82 +@WebServiceFeatureAnnotation(id= MemberSubmissionAddressingFeature.ID,bean=MemberSubmissionAddressingFeature.class)
    1.83 +public @interface MemberSubmissionAddressing {
    1.84 +    /**
    1.85 +     * Specifies if this feature is enabled or disabled.
    1.86 +     */
    1.87 +    boolean enabled() default true;
    1.88 +
    1.89 +    /**
    1.90 +     * Property to determine the value of the
    1.91 +     * <code>wsdl:required</code> attribute on
    1.92 +     * <code>wsaw:UsingAddressing</code> element in the WSDL.
    1.93 +     */
    1.94 +    boolean required() default false;
    1.95 +
    1.96 +    /**
    1.97 +     * Property to determine if the incoming messsages should be checked for conformance
    1.98 +     * with MemberSubmission version of WS-Addressing.
    1.99 +     *
   1.100 +     * If Validation.LAX, then some WS-Adressing headers are not strictly checked.
   1.101 +     */
   1.102 +    public enum Validation { LAX, STRICT }
   1.103 +
   1.104 +    Validation validation() default Validation.LAX;
   1.105 +
   1.106 +}

mercurial