KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > ws > Action


1 /*
2  * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.ws;
7
8 import java.lang.annotation.Documented JavaDoc;
9 import java.lang.annotation.ElementType JavaDoc;
10 import java.lang.annotation.Retention JavaDoc;
11 import java.lang.annotation.RetentionPolicy JavaDoc;
12 import java.lang.annotation.Target JavaDoc;
13
14 import javax.xml.ws.soap.Addressing;
15
16 /**
17
18  * The <code>Action</code> annotation allows explicit association of a
19  * WS-Addressing <code>Action</code> message addressing property with
20  * <code>input</code>, <code>output</code>, and
21  * <code>fault</code> messages of the mapped WSDL operation.
22  * <p>
23  * In this version of JAX-WS there is no standard way to specify
24  * <code>Action</code> values in a WSDL and there is no standard default value. It is intended that,
25  * after the W3C WG on WS-Addressing has defined these items in a recommendation,
26  * a future version of JAX-WS will require the new standards.
27  *
28  * @see Addressing
29  * @see FaultAction
30  *
31  * @since JAX-WS 2.1
32  */

33
34 @Documented JavaDoc
35 @Retention JavaDoc(RetentionPolicy.RUNTIME)
36 @Target JavaDoc(ElementType.METHOD)
37 public @interface Action {
38     /**
39      * Explicit value of the WS-Addressing <code>Action</code> message addressing property for the <code>input</code>
40      * message of the operation.
41      */

42     String JavaDoc input() default "";
43
44     /**
45      * Explicit value of the WS-Addressing <code>Action</code> message addressing property for the <code>output</code>
46      * message of the operation.
47      */

48     String JavaDoc output() default "";
49     
50     /**
51      * Explicit value of the WS-Addressing <code>Action</code> message addressing property for the <code>fault</code>
52      * message(s) of the operation. Each exception that is mapped to a fault and requires an explicit WS-Addressing
53      * <code>Action</code> message addressing property, needs to be specified as a value in this property
54      * using {@link FaultAction} annotation.
55      */

56     FaultAction[] fault() default { };
57 }
58
Popular Tags