Java Doc for WSIFUtils.java in  » Web-Services » wsif » org » apache » wsif » util » 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 » Web Services » wsif » org.apache.wsif.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.wsif.util.WSIFUtils

All known Subclasses:   org.apache.wsif.providers.jca.WSIFUtils_JCA,
WSIFUtils
public class WSIFUtils (Code)
This class provides utilities for WSIF runtime and generated stubs.
author:
   Alekander Slominski
author:
   Matthew J. Duftler
author:
   Sanjiva Weerawarana
author:
   Owen Burroughs
author:
   Ant Elder
author:
   Jeremy Hughes
author:
   Mark Whitlock
author:
   Piotr Przybylski




Method Summary
public static  voidaddDefinedItems(Map fromItems, String itemType, Map toItems)
    
public static  voidcreateSimpleTypesMap()
     Create a map of all schema simple types and there Java equivalents.
public static  MapgetAllItems(Definition def, String itemType)
    
public static  BindingOperationgetBindingOperation(Binding binding, Operation portTypeOp)
     Get a binding operation for a portType operation.
public static  BindingOperationgetBindingOperation(Binding binding, String opName, String inName, String outName)
     Get a binding operation for a portType operation.
public static  DefinitiongetDefinitionFromContent(String contextURL, String content)
    
public static  DefinitiongetDefinitionFromLocation(String contextURL, String location)
    
public static  ExtensionRegistrygetExtensionRegistry()
     Gets the WSIF WSDL Extensions Registry This calls initializeProviders to ensure all providers have registered any custom WSDL extensions.
public static  WSIFFormatHandlergetFormatHandler(Part part, Definition definition, javax.wsdl.Binding binding)
    
public static  StringgetFormatHandlerName(Part part, Definition definition, Binding binding)
    
public static  StringgetFormatStylePackage(Binding bindingModel)
    
public static  StringgetJavaClassNameFromXMLName(String xmlName)
    
public static  StringgetJavaClassNameFromXMLName(String xmlName, String delims)
    
public static  StringgetJavaNameFromXMLName(String xmlName, String delims)
    
public static  StringgetJavaNameFromXMLName(String xmlName)
    
public static  ObjectgetNamedItem(Map items, QName qname, String itemType)
    
public static  StringgetPackageNameFromNamespaceURI(String namespaceURI)
    
public static  StringgetPackageNameFromXMLName(String xmlName)
    
public static  MapgetSimpleTypesMap()
     Get a map of all schema simple types and there Java equivalents.
public static  PartgetWrappedDocLiteralPart(List parts, String operationName)
     Gets the wrapped Part if this is wrapped document literal stype operation.
public static  StringgetXSDNamespaceFromPackageName(String packageName)
    
public static  voidinitializeProviders()
     Initialize the WSIF providers.
public static  booleanisJNDIAvailable()
     This checks whether JNDI classes are available at runtime.
public static  booleanisWrappedDocLiteral(List parts, String operationName)
     Tests if this is wrapped document literal stype operation.
public static  WSIFServicelookupFactoryFromJNDI(String serviceNS, String serviceName, String portTypeNS, String portTypeName)
     Given the service and portType identification, return a factory that can produce WSIFPorts for that service/portType combination.
public static  DefinitionreadWSDL(String contextURL, String wsdlLoc)
     Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.
public static  DefinitionreadWSDL(URL documentBase, Reader reader, ClassLoader cl)
     Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.
public static  DefinitionreadWSDL(String documentBase, Reader reader, ClassLoader cl)
     Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.
public static  DefinitionreadWSDL(URL contextURL, String wsdlLoc, ClassLoader cl)
     Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.
public static  DefinitionreadWSDL(String contextURL, Reader reader)
     Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.
public static  DefinitionreadWSDL(String contextURL, Document wsdlDocument)
     Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.
public static  DefinitionreadWSDL(String contextURL, Element wsdlServicesElement)
     Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.
public static  PortTypeselectPortType(Definition def, String portTypeNS, String portTypeName)
    
public static  ServiceselectService(Definition def, String serviceNS, String serviceName)
    
public static  ListunWrapPart(Part p, Definition def)
     Unwraps a wrapped DocLit style part.
public static  booleanwildcardCompare(String s1, String s2, char wild)
     Compares two strings taking acount of a wildcard. The first string is compared to the second string taking account of a wildcard character in the first string.
public static  voidwriteWSDL(Definition def, Writer sink)
     Write WSDL - it is different from standard writeWSDL method as it is using extensibility elements that were registered for dynamic port factory.



Method Detail
addDefinedItems
public static void addDefinedItems(Map fromItems, String itemType, Map toItems)(Code)



createSimpleTypesMap
public static void createSimpleTypesMap()(Code)
Create a map of all schema simple types and there Java equivalents.



getAllItems
public static Map getAllItems(Definition def, String itemType)(Code)



getBindingOperation
public static BindingOperation getBindingOperation(Binding binding, Operation portTypeOp) throws WSIFException(Code)
Get a binding operation for a portType operation.
Parameters:
  binding - the WSLD binding the operation will choosen from
Parameters:
  portTypeOp - the portType operation the binding operation must match the BindingOperation



getBindingOperation
public static BindingOperation getBindingOperation(Binding binding, String opName, String inName, String outName) throws WSIFException(Code)
Get a binding operation for a portType operation.
Parameters:
  binding - the WSLD binding the operation will choosen from
Parameters:
  opName - the portType operation name of the wanted operation
Parameters:
  inName - the portType operation input name
Parameters:
  outName - the portType operation outpur name the BindingOperation



getDefinitionFromContent
public static Definition getDefinitionFromContent(String contextURL, String content) throws WSIFException(Code)



getDefinitionFromLocation
public static Definition getDefinitionFromLocation(String contextURL, String location) throws WSIFException(Code)



getExtensionRegistry
public static ExtensionRegistry getExtensionRegistry()(Code)
Gets the WSIF WSDL Extensions Registry This calls initializeProviders to ensure all providers have registered any custom WSDL extensions. ExtensionRegistry the WSIF ExtensionRegistry



getFormatHandler
public static WSIFFormatHandler getFormatHandler(Part part, Definition definition, javax.wsdl.Binding binding) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException(Code)



getFormatHandlerName
public static String getFormatHandlerName(Part part, Definition definition, Binding binding) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException(Code)



getFormatStylePackage
public static String getFormatStylePackage(Binding bindingModel)(Code)



getJavaClassNameFromXMLName
public static String getJavaClassNameFromXMLName(String xmlName)(Code)



getJavaClassNameFromXMLName
public static String getJavaClassNameFromXMLName(String xmlName, String delims)(Code)



getJavaNameFromXMLName
public static String getJavaNameFromXMLName(String xmlName, String delims)(Code)



getJavaNameFromXMLName
public static String getJavaNameFromXMLName(String xmlName)(Code)



getNamedItem
public static Object getNamedItem(Map items, QName qname, String itemType) throws WSIFException(Code)



getPackageNameFromNamespaceURI
public static String getPackageNameFromNamespaceURI(String namespaceURI)(Code)



getPackageNameFromXMLName
public static String getPackageNameFromXMLName(String xmlName)(Code)



getSimpleTypesMap
public static Map getSimpleTypesMap()(Code)
Get a map of all schema simple types and there Java equivalents. The map of simple types



getWrappedDocLiteralPart
public static Part getWrappedDocLiteralPart(List parts, String operationName)(Code)
Gets the wrapped Part if this is wrapped document literal stype operation. An operation is wrapped if: - there is only one input or output message part and that part is an element not a type (MIME means there can be many parts, so all this can check is that there is only one element part) - the message name is the same as the operation name (for a response the operation name is appened with "Response")



getXSDNamespaceFromPackageName
public static String getXSDNamespaceFromPackageName(String packageName)(Code)



initializeProviders
public static void initializeProviders()(Code)
Initialize the WSIF providers. Each provider initializes its WSDL extension registries. This has no effect if AutoLoad providers has been turned off on WSIFServiceImpl ... in that case it is the responsibility of the application to initialize providers.



isJNDIAvailable
public static boolean isJNDIAvailable()(Code)
This checks whether JNDI classes are available at runtime. If the return value is true, then generated stubs should invoke lookupFactoryFromJNDI to get the WSIFService. If not, then there's no need to do so.



isWrappedDocLiteral
public static boolean isWrappedDocLiteral(List parts, String operationName)(Code)
Tests if this is wrapped document literal stype operation. An operation is wrapped if: - there is only one input or output message part and that part is an element not a type (MIME means there can be many parts, so all this can check is that there is only one element part) - the message name is the same as the operation name (for a response the operation name is appened with "Response")



lookupFactoryFromJNDI
public static WSIFService lookupFactoryFromJNDI(String serviceNS, String serviceName, String portTypeNS, String portTypeName) throws WSIFException(Code)
Given the service and portType identification, return a factory that can produce WSIFPorts for that service/portType combination.



readWSDL
public static Definition readWSDL(String contextURL, String wsdlLoc) throws WSDLException(Code)
Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.



readWSDL
public static Definition readWSDL(URL documentBase, Reader reader, ClassLoader cl) throws WSDLException(Code)
Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory. It also uses the accompanying class loader to load imported WSDL resources.



readWSDL
public static Definition readWSDL(String documentBase, Reader reader, ClassLoader cl) throws WSDLException(Code)
Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory. It also uses the accompanying class loader to load imported WSDL resources.



readWSDL
public static Definition readWSDL(URL contextURL, String wsdlLoc, ClassLoader cl) throws WSDLException(Code)
Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory. It also uses the accompanying class loader to load imported WSDL resources.



readWSDL
public static Definition readWSDL(String contextURL, Reader reader) throws WSDLException(Code)
Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.



readWSDL
public static Definition readWSDL(String contextURL, Document wsdlDocument) throws WSDLException(Code)
Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.



readWSDL
public static Definition readWSDL(String contextURL, Element wsdlServicesElement) throws WSDLException(Code)
Read WSDL - it is different from standard readWSDL method as it is using extensibility elements that were registered for dynamic port factory.



selectPortType
public static PortType selectPortType(Definition def, String portTypeNS, String portTypeName) throws WSIFException(Code)



selectService
public static Service selectService(Definition def, String serviceNS, String serviceName) throws WSIFException(Code)



unWrapPart
public static List unWrapPart(Part p, Definition def) throws WSIFException(Code)
Unwraps a wrapped DocLit style part.



wildcardCompare
public static boolean wildcardCompare(String s1, String s2, char wild)(Code)
Compares two strings taking acount of a wildcard. The first string is compared to the second string taking account of a wildcard character in the first string. For example, wildcardCompare( "*.ibm.com", "hursley.ibm.com", '*') would return true.



writeWSDL
public static void writeWSDL(Definition def, Writer sink) throws WSDLException(Code)
Write WSDL - it is different from standard writeWSDL method as it is using extensibility elements that were registered for dynamic port factory.



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.