public class ServiceAdapterUtil
extends java.lang.Object
Constructor and Description |
---|
ServiceAdapterUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Throwable |
castToDeclaredException(java.lang.Class<?> exceptionClass,
java.lang.reflect.Method faultInfoMethod,
java.lang.Throwable serviceFault) |
static <T> T |
checkService(T o) |
static java.lang.Throwable |
getDeclaredException(java.lang.reflect.Method apiMethod,
java.lang.reflect.Method invokedMEthod,
java.lang.Throwable serviceFault) |
static java.lang.Object |
getFaultDocument(java.lang.Throwable serviceFault) |
static java.lang.reflect.Method |
getMatchingMethod(java.lang.Object object,
java.lang.reflect.Method method) |
static java.lang.reflect.Method |
getMatchingMethod(java.lang.Object object,
java.lang.String methodName)
TODO Describe this method
|
static boolean |
isDeclaredException(java.lang.reflect.Method apiMethod,
java.lang.Throwable serviceFault) |
static boolean |
isSimilar(java.lang.reflect.Method m1,
java.lang.reflect.Method m2)
Checks if two methods passed have similar name,this might extend
in future
|
public static java.lang.reflect.Method getMatchingMethod(java.lang.Object object, java.lang.reflect.Method method)
public static java.lang.reflect.Method getMatchingMethod(java.lang.Object object, java.lang.String methodName)
object
- methodName
- public static boolean isSimilar(java.lang.reflect.Method m1, java.lang.reflect.Method m2)
m1
- m2
- public static boolean isDeclaredException(java.lang.reflect.Method apiMethod, java.lang.Throwable serviceFault)
public static java.lang.Throwable getDeclaredException(java.lang.reflect.Method apiMethod, java.lang.reflect.Method invokedMEthod, java.lang.Throwable serviceFault)
public static java.lang.Throwable castToDeclaredException(java.lang.Class<?> exceptionClass, java.lang.reflect.Method faultInfoMethod, java.lang.Throwable serviceFault)
public static java.lang.Object getFaultDocument(java.lang.Throwable serviceFault)
public static <T> T checkService(T o) throws ConfigurationException
ConfigurationException
Copyright © 2018 Cloud Software Group, Inc. All Rights Reserved.