Class CxfSpringEndpointUtils

java.lang.Object
org.apache.camel.component.cxf.spring.jaxws.CxfSpringEndpointUtils

public final class CxfSpringEndpointUtils extends Object
  • Method Details

    • getQName

      public static QName getQName(String name)
    • getPortName

      public static QName getPortName(org.apache.camel.component.cxf.jaxws.CxfEndpoint endpoint)
    • getServiceName

      public static QName getServiceName(org.apache.camel.component.cxf.jaxws.CxfEndpoint endpoint)
    • hasWebServiceAnnotation

      public static boolean hasWebServiceAnnotation(Class<?> cls)
    • 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
    • getCxfEndpointPropertyValue

      public static String getCxfEndpointPropertyValue(CxfSpringEndpoint endpoint, String property)
    • 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 the Exchange.DESTINATION_OVERRIDE_URL in the IN message header. If the header is not found, it will return the default address.
      Parameters:
      exchange -
      defaultAddress -
    • createBus

      public 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. In the latter case, this method updates the bus configuration with the applicationContext which SpringCamelContext holds
      Parameters:
      context - - the Camel Context