KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
15  * The <code>FaultAction</code> annotation is used inside an {@link Action}
16  * annotation to allow an explicit association of a WS-Addressing
17  * <code>Action</code> message addressing property with the <code>fault</code>
18  * messages of the WSDL operation mapped from the exception class.
19  * <p>
20  * In this version of JAX-WS there is no standard way to specify
21  * <code>Action</code> values in a WSDL and there is no standard default value. It is intended that,
22  * after the W3C WG on WS-Addressing has defined these items in a recommendation,
23  * a future version of JAX-WS will require the new standards.
24  *
25  * @see Action
26  *
27  * @since JAX-WS 2.1
28  */

29
30 @Documented JavaDoc
31 @Retention JavaDoc(RetentionPolicy.RUNTIME)
32 @Target JavaDoc(ElementType.METHOD)
33 public @interface FaultAction {
34     /**
35      * Name of the exception class
36      */

37     Class JavaDoc className();
38
39     /**
40      * Value of WS-Addressing <code>Action</code> message addressing property for the exception
41      */

42     String JavaDoc value() default "";
43 }
44
Popular Tags