| 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 void | addDefinedItems(Map fromItems, String itemType, Map toItems) | public static void | createSimpleTypesMap() Create a map of all schema simple types and there Java equivalents. | public static Map | getAllItems(Definition def, String itemType) | public static BindingOperation | getBindingOperation(Binding binding, Operation portTypeOp) Get a binding operation for a portType operation. | public static BindingOperation | getBindingOperation(Binding binding, String opName, String inName, String outName) Get a binding operation for a portType operation. | public static Definition | getDefinitionFromContent(String contextURL, String content) | public static Definition | getDefinitionFromLocation(String contextURL, String location) | public static ExtensionRegistry | getExtensionRegistry() Gets the WSIF WSDL Extensions Registry
This calls initializeProviders to ensure all providers
have registered any custom WSDL extensions. | public static WSIFFormatHandler | getFormatHandler(Part part, Definition definition, javax.wsdl.Binding binding) | public static String | getFormatHandlerName(Part part, Definition definition, Binding binding) | public static String | getFormatStylePackage(Binding bindingModel) | public static String | getJavaClassNameFromXMLName(String xmlName) | public static String | getJavaClassNameFromXMLName(String xmlName, String delims) | public static String | getJavaNameFromXMLName(String xmlName, String delims) | public static String | getJavaNameFromXMLName(String xmlName) | public static Object | getNamedItem(Map items, QName qname, String itemType) | public static String | getPackageNameFromNamespaceURI(String namespaceURI) | public static String | getPackageNameFromXMLName(String xmlName) | public static Map | getSimpleTypesMap() Get a map of all schema simple types and there Java equivalents. | public static Part | getWrappedDocLiteralPart(List parts, String operationName) Gets the wrapped Part if this is wrapped document literal
stype operation. | public static String | getXSDNamespaceFromPackageName(String packageName) | public static void | initializeProviders() Initialize the WSIF providers. | public static boolean | isJNDIAvailable() This checks whether JNDI classes are available at runtime. | public static boolean | isWrappedDocLiteral(List parts, String operationName) Tests if this is wrapped document literal stype operation. | public static WSIFService | lookupFactoryFromJNDI(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 Definition | readWSDL(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 Definition | readWSDL(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 Definition | readWSDL(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 Definition | readWSDL(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 Definition | readWSDL(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 Definition | readWSDL(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 Definition | readWSDL(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 PortType | selectPortType(Definition def, String portTypeNS, String portTypeName) | public static Service | selectService(Definition def, String serviceNS, String serviceName) | public static List | unWrapPart(Part p, Definition def) Unwraps a wrapped DocLit style part. | public static boolean | wildcardCompare(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 void | writeWSDL(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. |
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 |
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 |
getFormatStylePackage | public static String getFormatStylePackage(Binding bindingModel)(Code) | | |
getJavaClassNameFromXMLName | public static String getJavaClassNameFromXMLName(String xmlName)(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.
|
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.
|
|
|