KickJava   Java API By Example, From Geeks To Geeks.

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


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.Target JavaDoc;
10 import java.lang.annotation.Retention JavaDoc;
11 import java.lang.annotation.ElementType JavaDoc;
12 import java.lang.annotation.RetentionPolicy JavaDoc;
13 import java.lang.annotation.Inherited JavaDoc;
14
15 /**
16  * Used to indicate whether a {@link Provider} implementation wishes to work
17  * with entire protocol messages or just with protocol message payloads.
18  *
19  * @since JAX-WS 2.0
20 **/

21 @Target JavaDoc({ElementType.TYPE})
22 @Retention JavaDoc(RetentionPolicy.RUNTIME)
23 @Inherited JavaDoc
24 @Documented JavaDoc
25 public @interface ServiceMode {
26   /**
27    * Service mode. <code>PAYLOAD</code> indicates that the <code>Provider</code> implementation
28    * wishes to work with protocol message payloads only. <code>MESSAGE</code> indicates
29    * that the <code>Provider</code> implementation wishes to work with entire protocol
30    * messages.
31   **/

32   public Service.Mode value() default Service.Mode.PAYLOAD;
33 }
34
Popular Tags