Java Doc for BindingID.java in  » 6.0-JDK-Modules » jax-ws-runtime » com » sun » xml » ws » api » 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 runtime » com.sun.xml.ws.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.api.BindingID

BindingID
abstract public class BindingID (Code)
Parsed binding ID string.

BindingID is an immutable object that represents a binding ID, much like how URL is a representation of an URL. Like URL , this class offers a bunch of methods that let you query various traits/properties of a binding ID.

BindingID is extensible; one can plug in a parser from String to BindingID to interpret binding IDs that the JAX-WS RI does no a-priori knowledge of. Technologies such as Tango uses this to make the JAX-WS RI understand binding IDs defined in their world. Such technologies are free to extend this class and expose more characterstics.

Even though this class defines a few well known constants, BindingID instances do not necessarily have singleton semantics. Use BindingID.equals(Object) for the comparison.

BindingID and WSBinding

WSBinding is mutable and represents a particular "use" of a BindingID . As such, it has state like a list of Handler s, which are inherently local to a particular usage. For example, if you have two proxies, you need two instances. BindingID , OTOH, is immutable and thus the single instance that represents "SOAP1.2/HTTP" can be shared and reused by all proxies in the same VM.
author:
   Kohsuke Kawaguchi



Field Summary
final public static  SOAPHTTPImplSOAP11_HTTP
     Constant that represents SOAP1.1/HTTP.
final public static  SOAPHTTPImplSOAP11_HTTP_MTOM
     Constant that represents SOAP1.1/HTTP.
final public static  SOAPHTTPImplSOAP12_HTTP
     Constant that represents SOAP1.2/HTTP.
final public static  SOAPHTTPImplSOAP12_HTTP_MTOM
     Constant that represents SOAP1.2/HTTP.
final public static  BindingIDXML_HTTP
     Constant that represents REST.
final public static  SOAPHTTPImplX_SOAP12_HTTP
    


Method Summary
public  booleancanGenerateWSDL()
     Returns true if this binding can generate WSDL.

For e.g.: SOAP 1.1 and "XSOAP 1.2" is supposed to return true from this method.

final public  WSBindingcreateBinding()
     Creates an instance of WSBinding (which is conceptually an "use" of BindingID ) from a BindingID .
final public  WSBindingcreateBinding(WebServiceFeature... features)
    
final public  WSBindingcreateBinding(WSFeatureList features)
    
public  WebServiceFeatureListcreateBuiltinFeatureList()
     Returna a new WebServiceFeatureList instance that represents the features that are built into this binding ID.
abstract public  CodeccreateEncoder(WSBinding binding)
     Creates a new Codec for this binding.
public  booleanequals(Object obj)
     Compares the equality based on BindingID.toString() .
public  StringgetParameter(String parameterName, String defaultValue)
     Returns a parameter of this binding ID.

Some binding ID, such as those for SOAP/HTTP, uses the URL query syntax (like ?mtom=true) to control the optional part of the binding.

abstract public  SOAPVersiongetSOAPVersion()
     Gets the SOAP version of this binding. TODO: clarify what to do with XML/HTTP binding If the binding is using SOAP, this method returnsa SOAPVersion constant.If the binding is not based on SOAP, this methodreturns null.
public  inthashCode()
    
public static  BindingIDparse(String lexical)
     Parses a binding ID string into a BindingID object.

This method first checks for a few known values and then delegate the parsing to BindingIDFactory .

If parsing succeeds this method returns a value.

public static  BindingIDparse(Class implClass)
     Figures out the binding from BindingType annotation.
abstract public  StringtoString()
     Gets the binding ID, which uniquely identifies the binding.

Field Detail
SOAP11_HTTP
final public static SOAPHTTPImpl SOAP11_HTTP(Code)
Constant that represents SOAP1.1/HTTP.



SOAP11_HTTP_MTOM
final public static SOAPHTTPImpl SOAP11_HTTP_MTOM(Code)
Constant that represents SOAP1.1/HTTP.



SOAP12_HTTP
final public static SOAPHTTPImpl SOAP12_HTTP(Code)
Constant that represents SOAP1.2/HTTP.



SOAP12_HTTP_MTOM
final public static SOAPHTTPImpl SOAP12_HTTP_MTOM(Code)
Constant that represents SOAP1.2/HTTP.



XML_HTTP
final public static BindingID XML_HTTP(Code)
Constant that represents REST.



X_SOAP12_HTTP
final public static SOAPHTTPImpl X_SOAP12_HTTP(Code)
Constant that represents implementation specific SOAP1.2/HTTP which is used to generate non-standard WSDLs





Method Detail
canGenerateWSDL
public boolean canGenerateWSDL()(Code)
Returns true if this binding can generate WSDL.

For e.g.: SOAP 1.1 and "XSOAP 1.2" is supposed to return true from this method. For SOAP1.2, there is no standard WSDL, so the runtime is not generating one and it expects the WSDL is packaged.




createBinding
final public WSBinding createBinding()(Code)
Creates an instance of WSBinding (which is conceptually an "use" of BindingID ) from a BindingID . Always a new instance.



createBinding
final public WSBinding createBinding(WebServiceFeature... features)(Code)



createBinding
final public WSBinding createBinding(WSFeatureList features)(Code)



createBuiltinFeatureList
public WebServiceFeatureList createBuiltinFeatureList()(Code)
Returna a new WebServiceFeatureList instance that represents the features that are built into this binding ID.

For example, BindingID for " " would always return a list that has MTOMFeature enabled.




createEncoder
abstract public Codec createEncoder(WSBinding binding)(Code)
Creates a new Codec for this binding.
Parameters:
  binding - Ocassionally some aspects of binding can be overridden byWSBinding at runtime by users, so some Codecsneed to have access to WSBinding that it's working for.



equals
public boolean equals(Object obj)(Code)
Compares the equality based on BindingID.toString() .



getParameter
public String getParameter(String parameterName, String defaultValue)(Code)
Returns a parameter of this binding ID.

Some binding ID, such as those for SOAP/HTTP, uses the URL query syntax (like ?mtom=true) to control the optional part of the binding. This method obtains the value for such optional parts.

For implementors of the derived classes, if your binding ID does not define such optional parts (such as the XML/HTTP binding ID), then you should simply return the specified default value (which is what this implementation does.)
Parameters:
  parameterName - The parameter name, such as "mtom" in the above example.
Parameters:
  defaultValue - If this binding ID doesn't have the specified parameter explicitly,this value will be returned.the value of the parameter, if it's present (such as "true"in the above example.) If not present, this method returnsthe defaultValue .




getSOAPVersion
abstract public SOAPVersion getSOAPVersion()(Code)
Gets the SOAP version of this binding. TODO: clarify what to do with XML/HTTP binding If the binding is using SOAP, this method returnsa SOAPVersion constant.If the binding is not based on SOAP, this methodreturns null. See Message for how a non-SOAPbinding shall be handled by Tubes.



hashCode
public int hashCode()(Code)



parse
public static BindingID parse(String lexical)(Code)
Parses a binding ID string into a BindingID object.

This method first checks for a few known values and then delegate the parsing to BindingIDFactory .

If parsing succeeds this method returns a value. Otherwise throws WebServiceException .
throws:
  WebServiceException - If the binding ID is not understood.




parse
public static BindingID parse(Class implClass)(Code)
Figures out the binding from BindingType annotation. default to BindingID.SOAP11_HTTP, if no such annotation is present.
See Also:   BindingID.parse(String)



toString
abstract public String toString()(Code)
Gets the binding ID, which uniquely identifies the binding.

The relevant specs define the binding IDs and what they mean. The ID is used in many places to identify the kind of binding (such as SOAP1.1, SOAP1.2, REST, ...) Always non-null same value.




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.