public final class ServiceUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getMethodName(Method m) |
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 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