Class CxfRsEndpointUtils
- java.lang.Object
-
- org.apache.camel.component.cxf.jaxrs.CxfRsEndpointUtils
-
public final class CxfRsEndpointUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckServiceClassName(String className)static StringgetEffectiveAddress(org.apache.camel.Exchange exchange, String defaultAddress)Get effective address for a client to invoke a service.static QNamegetQName(String name)static booleanhasAnnotation(Class<?> cls, Class<? extends Annotation> annotation)
-
-
-
Method Detail
-
hasAnnotation
public static boolean hasAnnotation(Class<?> cls, Class<? extends Annotation> annotation)
-
checkServiceClassName
public static void checkServiceClassName(String className) throws org.apache.camel.CamelException
- Throws:
org.apache.camel.CamelException
-
getEffectiveAddress
public static String getEffectiveAddress(org.apache.camel.Exchange exchange, String defaultAddress)
Get effective address for a client to invoke a service. It first looks for theExchange.DESTINATION_OVERRIDE_URLin the IN message header. If the header is not found, it will return the default address.- Parameters:
exchange-defaultAddress-
-
-