WebObjects 5.4.2

com.webobjects.appserver
Class WOWebServiceUtilities

java.lang.Object
  extended by com.webobjects.appserver.WOWebServiceUtilities

public class WOWebServiceUtilities
extends Object

Utilities for working with WebObjects WebServices

Since:
5.2

Field Summary
static String WebServiceOperationAttributesKey
          Defaults to 'com.webobjects.webservices.OperationAttributes'
 
Constructor Summary
WOWebServiceUtilities()
           
 
Method Summary
static WOContext currentWOContext()
          This returns the current WOContext object for the current thread.
static QName qNameForType(Class javaType, String namespaceURI)
          This returns the QName object for the given class and namespace.
static String qNameLocalPartStringForType(Class javaType, String namespaceURI)
          As qnameStringForType, but only returns the localpart.
static String qNameNamespaceURIStringForType(Class javaType, String namespaceURI)
          As qnameStringForType, but only returns the namespaceURI.
static String qNameStringForType(Class javaType, String namespaceURI)
          This will return a string representing the Qname, or null if anything went wrong anywhere Form is (namespaceURI:)?localpart - so "localpart" or "namespaceURI:localpart".
static Class typeForQName(QName qname, String namespaceURI)
          Maps QName to Class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WebServiceOperationAttributesKey

public static final String WebServiceOperationAttributesKey
Defaults to 'com.webobjects.webservices.OperationAttributes'

See Also:
Constant Field Values
Constructor Detail

WOWebServiceUtilities

public WOWebServiceUtilities()
Method Detail

currentWOContext

public static WOContext currentWOContext()
This returns the current WOContext object for the current thread. If you call this from a different thread, it won't work.

Returns:
WOContext
Since:
5.2

qNameForType

public static QName qNameForType(Class javaType,
                                 String namespaceURI)
This returns the QName object for the given class and namespace. It will return null if anything goes wrong anywhere. This will walk the inheritance and interface heirarchies to find a fit.

Parameters:
javaType -
namespaceURI -
Returns:
javax.xml.namespace.QName
Since:
5.2

qNameStringForType

public static String qNameStringForType(Class javaType,
                                        String namespaceURI)
This will return a string representing the Qname, or null if anything went wrong anywhere Form is (namespaceURI:)?localpart - so "localpart" or "namespaceURI:localpart". Don't parse based on the ":", as namespaceURI often includes a ":" as well (e.g. "http://webobjects") Instead, use qnameLocalPartStringForType or qnameNamespaceURIStringForType

Parameters:
javaType -
namespaceURI -
Returns:
String
Since:
5.2

qNameLocalPartStringForType

public static String qNameLocalPartStringForType(Class javaType,
                                                 String namespaceURI)
As qnameStringForType, but only returns the localpart. This doesn't cache, so the lookup will happen with each invocation

Parameters:
javaType -
namespaceURI -
Returns:
String
Since:
5.4

qNameNamespaceURIStringForType

public static String qNameNamespaceURIStringForType(Class javaType,
                                                    String namespaceURI)
As qnameStringForType, but only returns the namespaceURI. This doesn't cache, so the lookup will happen with each invocation.

Parameters:
javaType -
namespaceURI -
Returns:
String
Since:
5.2

typeForQName

public static Class typeForQName(QName qname,
                                 String namespaceURI)
Maps QName to Class. Returns null if anything goes wrong.

Since:
5.2

Last updated June 2008

Copyright © 2000-2008 Apple Inc.