public final class CxfEndpointUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkServiceClassName(String className) |
static org.apache.cxf.Bus |
createBus(org.apache.camel.CamelContext context)
Create a CXF bus with either BusFactory or SpringBusFactory if Camel Context
is SpringCamelContext.
|
static String |
getCxfEndpointPropertyValue(CxfSpringEndpoint endpoint,
String property) |
static String |
getEffectiveAddress(org.apache.camel.Exchange exchange,
String defaultAddress)
Get effective address for a client to invoke a service.
|
static QName |
getPortName(CxfEndpoint endpoint) |
static QName |
getQName(String name) |
static QName |
getServiceName(CxfEndpoint endpoint) |
static boolean |
hasAnnotation(Class<?> cls,
Class<? extends Annotation> annotation) |
static boolean |
hasWebServiceAnnotation(Class<?> cls) |
public static QName getPortName(CxfEndpoint endpoint)
public static QName getServiceName(CxfEndpoint endpoint)
public static boolean hasWebServiceAnnotation(Class<?> cls)
public static boolean hasAnnotation(Class<?> cls, Class<? extends Annotation> annotation)
public static void checkServiceClassName(String className) throws org.apache.camel.CamelException
org.apache.camel.CamelException
public static String getCxfEndpointPropertyValue(CxfSpringEndpoint endpoint, String property)
public static String getEffectiveAddress(org.apache.camel.Exchange exchange, String defaultAddress)
Exchange.DESTINATION_OVERRIDE_URL
in the IN message header.
If the header is not found, it will return the default address.exchange
- defaultAddress
- public static org.apache.cxf.Bus createBus(org.apache.camel.CamelContext context)
context
- - the Camel ContextApache Camel