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


java.lang.Object
   com.sun.xml.ws.wsdl.writer.WSDLGenerator

WSDLGenerator
public class WSDLGenerator (Code)
Class used to generate WSDLs from a SEIModel .
author:
   WS Development Team

Inner Class :protected class JAXWSOutputSchemaResolver extends SchemaOutputResolver

Field Summary
 List<WSDLGeneratorExtension>extensionHandlers
    

Constructor Summary
public  WSDLGenerator(AbstractSEIModelImpl model, WSDLResolver wsdlResolver, WSBinding binding, Container container, Class implType, WSDLGeneratorExtension... extensions)
    

Method Summary
public  ResultcreateOutputFile(String namespaceUri, String suggestedFileName)
     Creates the Result object used by JAXB to generate a schema for the namesapceUri namespace.
public  voiddoGeneration()
    
protected  voidgenerateBinding()
    
protected  voidgenerateBindingOperation(JavaMethodImpl method, Binding binding)
    
protected  voidgenerateDocumentParameterOrder(Operation operation, JavaMethodImpl method)
    
protected  voidgenerateInputMessage(Operation operation, JavaMethodImpl method)
    
protected  voidgenerateMessages()
    
protected  voidgenerateOutputMessage(Operation operation, JavaMethodImpl method)
    
protected  voidgenerateParameterOrder(Operation operation, JavaMethodImpl method)
    
protected  voidgeneratePortType()
    
protected  voidgenerateRpcParameterOrder(Operation operation, JavaMethodImpl method)
    
protected  voidgenerateSOAP12BindingOperation(JavaMethodImpl method, Binding binding)
    
protected  voidgenerateSOAP12Headers(TypedXmlWriter writer, List<ParameterImpl> parameters, QName message)
    
protected  voidgenerateSOAPHeaders(TypedXmlWriter writer, List<ParameterImpl> parameters, QName message)
    
protected  voidgenerateSOAPMessages(JavaMethodImpl method, com.sun.xml.ws.api.model.soap.SOAPBinding binding)
    
protected  voidgenerateService()
    
protected  voidgenerateTypes()
    
protected  booleanisAttachmentParameter(ParameterImpl parameter)
    
protected  booleanisBodyParameter(ParameterImpl parameter)
    
protected  booleanisHeaderParameter(ParameterImpl parameter)
    
protected  booleanisRpcLit(JavaMethodImpl method)
    
protected  booleanisWrapperStyle(JavaMethodImpl method)
    
protected static  Stringrelativize(String uri, String baseUri)
     Relativizes a URI by using another URI (base URI.)

For example, relative("http://www.sun.com/abc/def","http://www.sun.com/pqr/stu") => "../abc/def"

This method only works on hierarchical URI's, not opaque URI's (refer to the java.net.URI javadoc for complete definitions of these terms.

public  voidsetEndpointAddress(String address)
     Sets the endpoint address string to be written.
protected  List<ParameterImpl>sortMethodParameters(JavaMethodImpl method)
    
protected  voidsplitParameters(List<ParameterImpl> bodyParams, List<ParameterImpl> headerParams, List<ParameterImpl> params)
    

Field Detail
extensionHandlers
List<WSDLGeneratorExtension> extensionHandlers(Code)




Constructor Detail
WSDLGenerator
public WSDLGenerator(AbstractSEIModelImpl model, WSDLResolver wsdlResolver, WSBinding binding, Container container, Class implType, WSDLGeneratorExtension... extensions)(Code)
Creates the WSDLGenerator
Parameters:
  model - The AbstractSEIModelImpl used to generate the WSDL
Parameters:
  wsdlResolver - The WSDLResolver to use resovle names while generating the WSDL
Parameters:
  binding - specifies which javax.xml.ws.BindingType to generate
Parameters:
  extensions - an array WSDLGeneratorExtension that will be invoked to generate WSDL extensions




Method Detail
createOutputFile
public Result createOutputFile(String namespaceUri, String suggestedFileName) throws IOException(Code)
Creates the Result object used by JAXB to generate a schema for the namesapceUri namespace.
Parameters:
  namespaceUri - The namespace for the schema being generated
Parameters:
  suggestedFileName - the JAXB suggested file name for the schema file the Result for JAXB to generate the schema into
throws:
  java.io.IOException - thrown if on IO error occurs



doGeneration
public void doGeneration()(Code)
Performes the actual WSDL generation



generateBinding
protected void generateBinding()(Code)
Generates the Binding section of the WSDL



generateBindingOperation
protected void generateBindingOperation(JavaMethodImpl method, Binding binding)(Code)



generateDocumentParameterOrder
protected void generateDocumentParameterOrder(Operation operation, JavaMethodImpl method)(Code)
Generates the parameterOrder for a PortType operation
Parameters:
  operation - the operation to generate the parameterOrder for
Parameters:
  method - the JavaMethod to generate the parameterOrder from



generateInputMessage
protected void generateInputMessage(Operation operation, JavaMethodImpl method)(Code)

Parameters:
  operation -
Parameters:
  method -



generateMessages
protected void generateMessages()(Code)
Generates the WSDL messages



generateOutputMessage
protected void generateOutputMessage(Operation operation, JavaMethodImpl method)(Code)

Parameters:
  operation -
Parameters:
  method -



generateParameterOrder
protected void generateParameterOrder(Operation operation, JavaMethodImpl method)(Code)
Generates the parameterOrder for a PortType operation
Parameters:
  operation - The operation to generate the parameterOrder for
Parameters:
  method - The JavaMethod to generate the parameterOrder from



generatePortType
protected void generatePortType()(Code)
Generates the WSDL portType



generateRpcParameterOrder
protected void generateRpcParameterOrder(Operation operation, JavaMethodImpl method)(Code)
Generates the parameterOrder for a PortType operation
Parameters:
  operation - the operation to generate the parameterOrder for
Parameters:
  method - the JavaMethod to generate the parameterOrder from



generateSOAP12BindingOperation
protected void generateSOAP12BindingOperation(JavaMethodImpl method, Binding binding)(Code)



generateSOAP12Headers
protected void generateSOAP12Headers(TypedXmlWriter writer, List<ParameterImpl> parameters, QName message)(Code)

Parameters:
  writer -
Parameters:
  parameters -
Parameters:
  message -



generateSOAPHeaders
protected void generateSOAPHeaders(TypedXmlWriter writer, List<ParameterImpl> parameters, QName message)(Code)

Parameters:
  writer -
Parameters:
  parameters -
Parameters:
  message -



generateSOAPMessages
protected void generateSOAPMessages(JavaMethodImpl method, com.sun.xml.ws.api.model.soap.SOAPBinding binding)(Code)
Generates messages for a SOAPBinding
Parameters:
  method - The JavaMethod to generate messages for
Parameters:
  binding - The com.sun.xml.ws.api.model.soap.SOAPBinding to add the generated messages to



generateService
protected void generateService()(Code)
Generates the Service section of the WSDL



generateTypes
protected void generateTypes()(Code)
Generates the types section of the WSDL



isAttachmentParameter
protected boolean isAttachmentParameter(ParameterImpl parameter)(Code)



isBodyParameter
protected boolean isBodyParameter(ParameterImpl parameter)(Code)
Determines if a parameter is associated with the message Body
Parameters:
  parameter - the parameter to check true if the parameter is a body parameter



isHeaderParameter
protected boolean isHeaderParameter(ParameterImpl parameter)(Code)



isRpcLit
protected boolean isRpcLit(JavaMethodImpl method)(Code)
Determines if a JavaMethod is rpc/literal
Parameters:
  method - The method to check true if method is rpc/literal, otherwise, false



isWrapperStyle
protected boolean isWrapperStyle(JavaMethodImpl method)(Code)
Determines if the method is wrapper style
Parameters:
  method - The JavaMethod to check if it is wrapper style true if the method is wrapper style, otherwise, false.



relativize
protected static String relativize(String uri, String baseUri)(Code)
Relativizes a URI by using another URI (base URI.)

For example, relative("http://www.sun.com/abc/def","http://www.sun.com/pqr/stu") => "../abc/def"

This method only works on hierarchical URI's, not opaque URI's (refer to the java.net.URI javadoc for complete definitions of these terms.

This method will not normalize the relative URI.
Parameters:
  uri - the URI to relativize
Parameters:
  baseUri - the base URI to use for the relativization the relative URI or the original URI if a relative one could not be computed




setEndpointAddress
public void setEndpointAddress(String address)(Code)
Sets the endpoint address string to be written. Defaults to WSDLGenerator.REPLACE_WITH_ACTUAL_URL .



sortMethodParameters
protected List<ParameterImpl> sortMethodParameters(JavaMethodImpl method)(Code)
Sorts the parameters for the method by their position
Parameters:
  method - the JavaMethod used to sort the parameters the sorted List of parameters



splitParameters
protected void splitParameters(List<ParameterImpl> bodyParams, List<ParameterImpl> headerParams, List<ParameterImpl> params)(Code)

Parameters:
  bodyParams -
Parameters:
  headerParams -
Parameters:
  params -



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.