Source Code Cross Referenced for RespectBindingFeature.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) 


001:        /*
002:         * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
003:         * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
004:         */
005:
006:        package javax.xml.ws;
007:
008:        import javax.xml.bind.JAXBContext;
009:        import javax.xml.namespace.QName;
010:        import javax.xml.ws.WebServiceFeature;
011:        import javax.xml.ws.WebServiceException;
012:        import javax.xml.ws.spi.Provider;
013:
014:        /**
015:         * This feature clarifies the use of the <code>wsdl:binding</code>
016:         * in a JAX-WS runtime.
017:         * <p>
018:         * This feature is only useful with web services that have an
019:         * associated WSDL. Enabling this feature requires that a JAX-WS
020:         * implementation inspect the <code>wsdl:binding</code> for an
021:         * endpoint at runtime to make sure that all <code>wsdl:extensions</code>
022:         * that have the <code>required</code> attribute set to <code>true</code>
023:         * are understood and are being used.
024:         * <p>
025:         * The following describes the affects of this feature with respect
026:         * to be enabled or disabled:
027:         * <ul>
028:         *  <li> ENABLED: In this Mode, a JAX-WS runtime MUST assure that all
029:         *  required <code>wsdl:binding</code> extensions are either understood
030:         and used by the runtime, or explicitly disabled by the web service
031:         *  application.  A web service application can disable a particular 
032:         *  extension that has a known WebServiceFeature using either the appropriate 
033:         *  annotation associated with that WebServiceFeature on the server, or one of 
034:         *  the following methods on the client:
035:         *    <ul>
036:         *      <li>{@link Service#getPort(QName,Class,WebServiceFeature...)}
037:         *      <li>{@link Service#getPort(Class,WebServiceFeature...)}
038:         *      <li>{@link Service#getPort(EndpointReference,Class,WebServiceFeature...)}
039:         *      <li>{@link Service#createDispatch(QName,Class,Service.Mode mode,WebServiceFeature...)}
040:         *      <li>{@link Service#createDispatch(EndpointReference,Class,Service.Mode,WebServiceFeature...)}
041:         *      <li>{@link Service#createDispatch(QName,JAXBContext,Service.Mode,WebServiceFeature...)}
042:         *      <li>{@link Service#createDispatch(EndpointReference,JAXBContext,Service.Mode,WebServiceFeature...)}
043:         *      <li>{@link EndpointReference#getPort(Class,WebServiceFeature...)}
044:         *      <li>One of the <code>getXXXPort(WebServiceFeatures...)</code> methods on a
045:         *          generated <code>Service</code>.
046:         *    </ul>
047:         *  The runtime MUST also make sure that binding of 
048:         *  SEI parameters/return values respect the <code>wsdl:binding</code>.
049:         *  With this feature enabled, if a required (<code>wsdl:required="true"</code>)
050:         *  <code>wsdl:binding</code> extension is in the WSDL and it is not
051:         *  supported by a JAX-WS runtime and it has not 
052:         *  been explicitly turned off by the web service developer, then
053:         *  that JAX-WS runtime MUST behave appropriately based on whether it is 
054:         *  on the client or server:
055:         *  <UL>
056:         *    <li>Client: runtime MUST throw a 
057:         *  <code>WebServiceException</code> no sooner than when one of the methods
058:         *  above is invoked but no later than the first invocation of an endpoint
059:         *  operation. 
060:         *    <li>Server: throw a WebServiceException and the endpoint MUST fail to deploy
061:         *  </ul>
062:         *  <li> DISABLED: In this Mode, an implementation may choose whether
063:         *  to inspect the <code>wsdl:binding<code> or not and to what degree
064:         *  the <code>wsdl:binding</code> will be inspected.  For example,
065:         *  one implementation may choose to behave as if this feature is enabled,
066:         *  another implementation may only choose to verify the SEI's 
067:         *  parameter/return type bindings.
068:         * </ul>
069:         *
070:         * @see javax.xml.ws.soap.AddressingFeature
071:         *
072:         * @since JAX-WS 2.1
073:         */
074:        public final class RespectBindingFeature extends WebServiceFeature {
075:            /**
076:             * 
077:             * Constant value identifying the RespectBindingFeature
078:             */
079:            public static final String ID = "javax.xml.ws.RespectBindingFeature";
080:
081:            /**
082:             * Creates an <code>RespectBindingFeature</code>.
083:             * The instance created will be enabled.
084:             */
085:            public RespectBindingFeature() {
086:                this .enabled = true;
087:            }
088:
089:            /**
090:             * Creates an RespectBindingFeature
091:             * 
092:             * @param enabled specifies whether this feature should
093:             * be enabled or not.
094:             */
095:            public RespectBindingFeature(boolean enabled) {
096:                this .enabled = enabled;
097:            }
098:
099:            /**
100:             * {@inheritDoc}
101:             */
102:            public String getID() {
103:                return ID;
104:            }
105:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.