Source Code Cross Referenced for RespectBinding.java in  » 6.0-JDK-Modules » jax-ws-api » javax » xml » ws » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » jax ws api » javax.xml.ws 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03:         * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04:         */
05:
06:        package javax.xml.ws;
07:
08:        import java.lang.annotation.Documented;
09:        import java.lang.annotation.Target;
10:        import java.lang.annotation.ElementType;
11:        import java.lang.annotation.Retention;
12:        import java.lang.annotation.RetentionPolicy;
13:        import javax.xml.bind.JAXBContext;
14:        import javax.xml.namespace.QName;
15:        import javax.xml.ws.spi.WebServiceFeatureAnnotation;
16:
17:        /**
18:         * This feature clarifies the use of the <code>wsdl:binding</code>
19:         * in a JAX-WS runtime.
20:         * <p>
21:         * This feature is only useful with web services that have an
22:         * associated WSDL. Enabling this feature requires that a JAX-WS
23:         * implementation inspect the <code>wsdl:binding</code> for an
24:         * endpoint at runtime to make sure that all <code>wsdl:extensions</code>
25:         * that have the <code>required</code> attribute set to <code>true</code>
26:         * are understood and are being used.
27:         * <p>
28:         * The following describes the affects of this feature with respect
29:         * to be enabled or disabled:
30:         * <ul>
31:         *  <li> ENABLED: In this Mode, a JAX-WS runtime MUST assure that all
32:         *  required <code>wsdl:binding</code> extensions are either understood
33:         *  and used by the runtime, or explicitly disabled by the web service
34:         *  application.  A web service application can disable a particular 
35:         *  extension that has a known WebServiceFeature using either the appropriate 
36:         *  annotation associated with that WebServiceFeature on the server, or one of 
37:         *  the following methods on the client:
38:         *    <ul>
39:         *      <li>{@link Service#getPort(QName,Class,WebServiceFeature...)}
40:         *      <li>{@link Service#getPort(Class,WebServiceFeature...)}
41:         *      <li>{@link Service#getPort(EndpointReference,Class,WebServiceFeature...)}
42:         *      <li>{@link Service#createDispatch(QName,Class,Service.Mode mode,WebServiceFeature...)}
43:         *      <li>{@link Service#createDispatch(EndpointReference,Class,Service.Mode,WebServiceFeature...)}
44:         *      <li>{@link Service#createDispatch(QName,JAXBContext,Service.Mode,WebServiceFeature...)}
45:         *      <li>{@link Service#createDispatch(EndpointReference,JAXBContext,Service.Mode,WebServiceFeature...)}
46:         *      <li>{@link EndpointReference#getPort(Class,WebServiceFeature...)}
47:         *      <li>One of the <code>getXXXPort(WebServiceFeatures...)</code> methods on a
48:         *          generated <code>Service</code>.
49:         *    </ul>
50:         *    The runtime MUST also make sure that binding of
51:         *    SEI parameters/return values respect the <code>wsdl:binding</code>.
52:         *    With this feature enabled, if a required (<code>wsdl:required="true"</code>)
53:         *    <code>wsdl:binding</code> extension is in the WSDL and it is not
54:         *    supported by a JAX-WS runtime and it has not
55:         *    been explicitly turned off by the web service developer, then
56:         *    that JAX-WS runtime MUST behave appropriately based on whether it is
57:         *    on the client or server:
58:         *    <UL>
59:         *      <li>Client: runtime MUST throw a
60:         *      <code>WebServiceException</code> no sooner than when one of the methods
61:         *      above is invoked but no later than the first invocation of an endpoint
62:         *      operation.
63:         *      <li>Server: throw a WebServiceException and the endpoint MUST fail to deploy
64:         *    </ul>
65:         *  <li> DISABLED: In this Mode, an implementation may choose whether
66:         *  to inspect the <code>wsdl:binding<code> or not and to what degree
67:         *  the <code>wsdl:binding</code> will be inspected.  For example,
68:         *  one implementation may choose to behave as if this feature is enabled,
69:         *  another implementation may only choose to verify the SEI's
70:         *  parameter/return type bindings.
71:         * </ul>
72:         *
73:         * @see javax.xml.ws.RespectBindingFeature
74:         *
75:         * @since JAX-WS 2.1
76:         */
77:        @Target(ElementType.TYPE)
78:        @Retention(RetentionPolicy.RUNTIME)
79:        @Documented
80:        @WebServiceFeatureAnnotation(id=RespectBindingFeature.ID,bean=RespectBindingFeature.class)
81:        public @interface RespectBinding {
82:            /**
83:             * Specifies if this feature is enabled or disabled.
84:             */
85:            boolean enabled() default true;
86:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.