public final class ServiceUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getMethodName(java.lang.reflect.Method m) |
static SchemaValidation.SchemaValidationType |
getSchemaValidationType(Message message)
A convenience method to check for schema validation config in the message context, and then in the service model.
|
static SchemaValidation.SchemaValidationType |
getSchemaValidationType(java.lang.Object obj) |
static boolean |
isSchemaValidationEnabled(SchemaValidation.SchemaValidationType type,
Message message)
A short cut method to be able to test for if Schema Validation should be enabled
for IN or OUT without having to check BOTH and IN or OUT.
|
static java.lang.String |
makeNamespaceFromClassName(java.lang.String className,
java.lang.String protocol)
Generates the name of a XML namespace from a given class name and
protocol.
|
static java.lang.String |
makePackageName(java.lang.String namespace)
Method makePackageName
|
static QName |
makeQualifiedNameFromClass(java.lang.Class<?> clazz) |
static java.lang.String |
makeServiceNameFromClassName(java.lang.Class<?> clazz)
Generates a suitable service name from a given class.
|
public static boolean isSchemaValidationEnabled(SchemaValidation.SchemaValidationType type, Message message)
message - type - public static SchemaValidation.SchemaValidationType getSchemaValidationType(Message message)
message - public static SchemaValidation.SchemaValidationType getSchemaValidationType(java.lang.Object obj)
public static java.lang.String makeServiceNameFromClassName(java.lang.Class<?> clazz)
clazz - the class.public static QName makeQualifiedNameFromClass(java.lang.Class<?> clazz)
public static java.lang.String getMethodName(java.lang.reflect.Method m)
public static java.lang.String makeNamespaceFromClassName(java.lang.String className,
java.lang.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)public static java.lang.String makePackageName(java.lang.String namespace)
namespace -