< prev index next >

jaxws/src/java.xml.ws/share/classes/javax/xml/ws/Action.java

Print this page


   1 /*
   2  * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 112  * {@code output} message only. In this case, {@code wsam:Action} value for the
 113  * WSDL {@code input} message is computed using the algorithm in the JAX-WS specification.
 114  *
 115  * <p>
 116  * <b>Example 3</b>: See {@link FaultAction} annotation for an example of
 117  * how to specify an explicit value for {@code Action} message addressing property for the
 118  * {@code fault} message.
 119  *
 120  * @see FaultAction
 121  *
 122  * @since 1.6, JAX-WS 2.1
 123  */
 124 
 125 @Documented
 126 @Retention(RetentionPolicy.RUNTIME)
 127 @Target(ElementType.METHOD)
 128 public @interface Action {
 129     /**
 130      * Explicit value of the WS-Addressing {@code Action} message addressing property for the {@code input}
 131      * message of the operation.


 132      */
 133     String input() default "";
 134 
 135     /**
 136      * Explicit value of the WS-Addressing {@code Action} message addressing property for the {@code output}
 137      * message of the operation.


 138      */
 139     String output() default "";
 140 
 141     /**
 142      * Explicit value of the WS-Addressing {@code Action} message addressing property for the {@code fault}
 143      * message(s) of the operation. Each exception that is mapped to a fault and requires an explicit WS-Addressing
 144      * {@code Action} message addressing property, needs to be specified as a value in this property
 145      * using {@link FaultAction} annotation.


 146      */
 147     FaultAction[] fault() default { };
 148 }
   1 /*
   2  * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 112  * {@code output} message only. In this case, {@code wsam:Action} value for the
 113  * WSDL {@code input} message is computed using the algorithm in the JAX-WS specification.
 114  *
 115  * <p>
 116  * <b>Example 3</b>: See {@link FaultAction} annotation for an example of
 117  * how to specify an explicit value for {@code Action} message addressing property for the
 118  * {@code fault} message.
 119  *
 120  * @see FaultAction
 121  *
 122  * @since 1.6, JAX-WS 2.1
 123  */
 124 
 125 @Documented
 126 @Retention(RetentionPolicy.RUNTIME)
 127 @Target(ElementType.METHOD)
 128 public @interface Action {
 129     /**
 130      * Explicit value of the WS-Addressing {@code Action} message addressing property for the {@code input}
 131      * message of the operation.
 132      *
 133      * @return {@code Action} message addressing property for the {@code input} message
 134      */
 135     String input() default "";
 136 
 137     /**
 138      * Explicit value of the WS-Addressing {@code Action} message addressing property for the {@code output}
 139      * message of the operation.
 140      *
 141      * @return {@code Action} message addressing property for the {@code output} message
 142      */
 143     String output() default "";
 144 
 145     /**
 146      * Explicit value of the WS-Addressing {@code Action} message addressing property for the {@code fault}
 147      * message(s) of the operation. Each exception that is mapped to a fault and requires an explicit WS-Addressing
 148      * {@code Action} message addressing property, needs to be specified as a value in this property
 149      * using {@link FaultAction} annotation.
 150      *
 151      * @return {@code Action} message addressing property for the {@code fault} message(s)
 152      */
 153     FaultAction[] fault() default { };
 154 }
< prev index next >