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


java.lang.Object
   com.sun.xml.ws.model.RuntimeModeler

RuntimeModeler
public class RuntimeModeler (Code)
Creates a runtime model of a SEI (portClass).
author:
   WS Developement Team


Field Summary
final public static  StringBEAN
    
final public static  ClassHOLDER_CLASS
    
final public static  StringJAXWS_PACKAGE_PD
    
final public static  StringPD_JAXWS_PACKAGE_PD
    
final public static  StringPORT
    
final public static  Class<RemoteException>REMOTE_EXCEPTION_CLASS
    
final public static  StringRESPONSE
    
final public static  StringRETURN
    
final public static  StringSERVICE
    

Constructor Summary
public  RuntimeModeler(Class portClass, QName serviceName, BindingID bindingId)
    
public  RuntimeModeler(Class sei, QName serviceName, WSDLPortImpl wsdlPort)
    

Method Summary
public  AbstractSEIModelImplbuildRuntimeModel()
     builds the runtime model from the portClass using the binding ID bindingId.
public static  Stringcapitalize(String name)
    
protected  SOAPBindingImplcreateBinding(SOAPBinding soapBinding)
    
protected  voiddetermineWebMethodUse(Class clazz)
    
public static  StringgetNamespace(String packageName)
     gets the namespace String for a given packageName
Parameters:
  packageName - the name of the package used to find a namespace.can be empty.
public static  QNamegetPortName(Class implClass, String targetNamespace)
    
public static  QNamegetPortTypeName(Class implOrSeiClass)
    
public static  QNamegetServiceName(Class implClass)
    
protected  MethodgetWSDLExceptionFaultInfo(Class exception)
     returns the method that corresponds to "getFaultInfo".
protected  booleanisWebMethod(Method method, Class clazz)
    
 voidprocessClass(Class clazz)
    
protected  voidprocessDocBareMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)
    
protected  voidprocessDocWrappedMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)
    
protected  voidprocessExceptions(JavaMethodImpl javaMethod, Method method)
    
protected  voidprocessMethod(Method method, WebService webService)
    
protected  voidprocessRpcMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)
    
public  voidsetClassLoader(ClassLoader classLoader)
     sets the classloader to be used when loading classes by the RuntimeModeler.
public  voidsetPortName(QName portName)
     sets the PortName to be used by the RuntimeModeler.
protected  voidsetUsesWebMethod(Class clazz, Boolean usesWebMethod)
    

Field Detail
BEAN
final public static String BEAN(Code)



HOLDER_CLASS
final public static Class HOLDER_CLASS(Code)



JAXWS_PACKAGE_PD
final public static String JAXWS_PACKAGE_PD(Code)



PD_JAXWS_PACKAGE_PD
final public static String PD_JAXWS_PACKAGE_PD(Code)



PORT
final public static String PORT(Code)



REMOTE_EXCEPTION_CLASS
final public static Class<RemoteException> REMOTE_EXCEPTION_CLASS(Code)



RESPONSE
final public static String RESPONSE(Code)



RETURN
final public static String RETURN(Code)



SERVICE
final public static String SERVICE(Code)




Constructor Detail
RuntimeModeler
public RuntimeModeler(Class portClass, QName serviceName, BindingID bindingId)(Code)
creates an instance of RunTimeModeler given a portClass and bindingId
Parameters:
  portClass - The SEI class to be modeled.
Parameters:
  serviceName - The ServiceName to use instead of one calculated from the implementation class
Parameters:
  bindingId - The binding identifier to be used when modeling the portClass.



RuntimeModeler
public RuntimeModeler(Class sei, QName serviceName, WSDLPortImpl wsdlPort)(Code)
creates an instance of RunTimeModeler given a sei and binding
Parameters:
  sei - The SEI class to be modeled.
Parameters:
  serviceName - The ServiceName to use instead of one calculated from the implementation class
Parameters:
  wsdlPort - com.sun.xml.ws.api.model.wsdl.WSDLPort




Method Detail
buildRuntimeModel
public AbstractSEIModelImpl buildRuntimeModel()(Code)
builds the runtime model from the portClass using the binding ID bindingId. the runtime model for the portClass.



capitalize
public static String capitalize(String name)(Code)
utility to capitalize the first letter in a string
Parameters:
  name - the string to capitalize the capitalized string



createBinding
protected SOAPBindingImpl createBinding(SOAPBinding soapBinding)(Code)
creates a runtime model SOAPBinding from a javax.jws.soap.SOAPBinding object
Parameters:
  soapBinding - the javax.jws.soap.SOAPBinding to model returns the runtime model SOAPBinding corresponding to soapBinding



determineWebMethodUse
protected void determineWebMethodUse(Class clazz)(Code)



getNamespace
public static String getNamespace(String packageName)(Code)
gets the namespace String for a given packageName
Parameters:
  packageName - the name of the package used to find a namespace.can be empty. the namespace for the specified packageName



getPortName
public static QName getPortName(Class implClass, String targetNamespace)(Code)
gets the wsdl:portName for a given implementation class
Parameters:
  implClass - the implementation class
Parameters:
  targetNamespace - Namespace URI for service name the wsdl:portName for the implClass



getPortTypeName
public static QName getPortTypeName(Class implOrSeiClass)(Code)
Gives portType QName from implementatorClass or SEI
Parameters:
  implOrSeiClass - cant be null wsdl:portType@name, null if it could not find the annotated class.



getServiceName
public static QName getServiceName(Class implClass)(Code)
gets the wsdl:serviceName for a given implementation class
Parameters:
  implClass - the implementation class the wsdl:serviceName for the implClass



getWSDLExceptionFaultInfo
protected Method getWSDLExceptionFaultInfo(Class exception)(Code)
returns the method that corresponds to "getFaultInfo". Returns null if this is not an exception generated from a WSDL
Parameters:
  exception - the class to search for the "getFaultInfo" method the method named "getFaultInfo" if this is an exception generated from WSDL or anexception that contains the WebFault annotation. Otherwise it returns null



isWebMethod
protected boolean isWebMethod(Method method, Class clazz)(Code)



processClass
void processClass(Class clazz)(Code)



processDocBareMethod
protected void processDocBareMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)(Code)
models a document/literal bare method
Parameters:
  javaMethod - the runtime model JavaMethod instance being created
Parameters:
  methodName - the runtime model JavaMethod instance being created
Parameters:
  webMethod - the runtime model JavaMethod instance being created
Parameters:
  operationName - the runtime model JavaMethod instance being created
Parameters:
  method - the runtime model JavaMethod instance being created
Parameters:
  webService - the runtime model JavaMethod instance being created



processDocWrappedMethod
protected void processDocWrappedMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)(Code)
models a document/literal wrapped method
Parameters:
  javaMethod - the runtime model JavaMethod instance being created
Parameters:
  methodName - the runtime model JavaMethod instance being created
Parameters:
  webMethod - the runtime model JavaMethod instance being created
Parameters:
  operationName - the runtime model JavaMethod instance being created
Parameters:
  method - the method to model
Parameters:
  webService - The WebService annotation instance on the portClass



processExceptions
protected void processExceptions(JavaMethodImpl javaMethod, Method method)(Code)
models the exceptions thrown by method and adds them to the javaMethod runtime model object
Parameters:
  javaMethod - the runtime model object to add the exception model objects to
Parameters:
  method - the method from which to find the exceptions to model



processMethod
protected void processMethod(Method method, WebService webService)(Code)
creates the runtime model for a method on the portClass
Parameters:
  method - the method to model
Parameters:
  webService - the instance of the WebService annotation on the portClass



processRpcMethod
protected void processRpcMethod(JavaMethodImpl javaMethod, String methodName, WebMethod webMethod, String operationName, Method method, WebService webService)(Code)
models a rpc/literal method
Parameters:
  javaMethod - the runtime model JavaMethod instance being created
Parameters:
  methodName - the name of the method being modeled.
Parameters:
  webMethod - the WebMethod annotations instance on the method
Parameters:
  operationName - the WSDL operation name for this method
Parameters:
  method - the runtime model JavaMethod instance being created
Parameters:
  webService - the runtime model JavaMethod instance being created



setClassLoader
public void setClassLoader(ClassLoader classLoader)(Code)
sets the classloader to be used when loading classes by the RuntimeModeler.
Parameters:
  classLoader - ClassLoader used to load classes



setPortName
public void setPortName(QName portName)(Code)
sets the PortName to be used by the RuntimeModeler.
Parameters:
  portName - The PortName to be used instead of the PortNameretrieved via annotations



setUsesWebMethod
protected void setUsesWebMethod(Class clazz, Boolean usesWebMethod)(Code)



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.