public final class ServiceUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getMethodName(Method m) |
static SchemaValidation.SchemaValidationType |
getSchemaValidationType(Message message)
Determines the appropriate SchemaValidationType to return based on either
a Boolean (for backwards compatibility) or the selected Schema Validation Type.
|
static String |
makeNamespaceFromClassName(String className,
String protocol)
Generates the name of a XML namespace from a given class name and
protocol.
|
static String |
makePackageName(String namespace)
Method makePackageName
|
static QName |
makeQualifiedNameFromClass(Class<?> clazz) |
static String |
makeServiceNameFromClassName(Class<?> clazz)
Generates a suitable service name from a given class.
|
public static SchemaValidation.SchemaValidationType getSchemaValidationType(Message message)
message - public static String makeServiceNameFromClassName(Class<?> clazz)
clazz - the class.public static String makeNamespaceFromClassName(String className, String protocol)
protocol://domain, where protocol is the
given protocol, and domain the inversed package name of
the given class name. For instance, if the given class name is
org.codehaus.xfire.services.Echo, and the protocol is
http, the resulting namespace would be
http://services.xfire.codehaus.org.className - the class nameprotocol - the protocol (eg. http)Apache CXF