KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.lang.annotation.Documented JavaDoc;
8 import java.lang.annotation.Target JavaDoc;
9 import java.lang.annotation.Retention JavaDoc;
10 import java.lang.annotation.ElementType JavaDoc;
11 import java.lang.annotation.RetentionPolicy JavaDoc;
12 /**
13  * Used to annotate methods in the Service Endpoint Interface with the response
14  * wrapper bean to be used at runtime. The default value of the <code>localName</code> is
15  * the <code>operationName</code> as defined in <code>WebMethod</code> annotation appended with
16  * <code>Response</code> and the <code>targetNamespace</code> is the target namespace of the SEI.
17  * <p> When starting from Java this annotation is used resolve
18  * overloading conflicts in document literal mode. Only the <code>className</code>
19  * is required in this case.
20  *
21  * @since JAX-WS 2.0
22 **/

23
24 @Target JavaDoc(ElementType.METHOD)
25 @Retention JavaDoc(RetentionPolicy.RUNTIME)
26 @Documented JavaDoc
27 public @interface ResponseWrapper {
28
29   /**
30
31    * Element's local name.
32
33   **/

34
35   public String JavaDoc localName() default "";
36
37
38
39   /**
40
41    * Element's namespace name.
42
43   **/

44
45   public String JavaDoc targetNamespace() default "";
46
47
48
49   /**
50
51    * Response wrapper bean name.
52
53   **/

54
55   public String JavaDoc className() default "";
56
57 }
58
59
Popular Tags