Java Code Examples for org.apache.camel.component.cxf.CxfEndpoint#setBeanId()

The following examples show how to use org.apache.camel.component.cxf.CxfEndpoint#setBeanId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Application.java    From wildfly-camel-examples with Apache License 2.0 6 votes vote down vote up
@Named("cxfProducerEndpoint")
@Produces
public CxfEndpoint createCxfProducerEndpoint() {
    CxfEndpoint cxfProducerEndpoint = this.camelContext.getEndpoint(CXF_ENDPOINT_URI, CxfEndpoint.class);
    cxfProducerEndpoint.setBeanId("cxfProducerEndpoint");
    cxfProducerEndpoint.setServiceClass(GreetingService.class);

    SSLContextParameters producerSslContextParameters = this.createProducerSSLContextParameters();
    cxfProducerEndpoint.setSslContextParameters(producerSslContextParameters);

    // Not for use in production
    HostnameVerifier hostnameVerifier = new HostnameVerifier() {
        @Override
        public boolean verify(String hostname, SSLSession session) {
            return true;
        }
    };
    cxfProducerEndpoint.setHostnameVerifier(hostnameVerifier);

    return cxfProducerEndpoint;
}
 
Example 2
Source File: ApplicationB.java    From wildfly-camel with Apache License 2.0 6 votes vote down vote up
@Named("cxfProducerEndpointB")
@Produces
public CxfEndpoint createCxfProducerEndpoint() {
    CxfComponent cxfProducerComponent = new CxfComponent(this.camelContext);
    CxfEndpoint cxfProducerEndpoint = new CxfEndpoint(CXF_ENDPOINT_URI, cxfProducerComponent);
    cxfProducerEndpoint.setBeanId("cxfProducerEndpointB");
    cxfProducerEndpoint.setServiceClass(GreetingService.class);

    // Not for use in production
    HostnameVerifier hostnameVerifier = new HostnameVerifier() {
        @Override
        public boolean verify(String hostname, SSLSession session) {
            return true;
        }
    };
    cxfProducerEndpoint.setHostnameVerifier(hostnameVerifier);

    return cxfProducerEndpoint;
}
 
Example 3
Source File: Application.java    From wildfly-camel with Apache License 2.0 6 votes vote down vote up
@Named("cxfProducerEndpoint")
@Produces
public CxfEndpoint createCxfProducerEndpoint() {
    CxfComponent cxfProducerComponent = new CxfComponent(this.camelContext);
    CxfEndpoint cxfProducerEndpoint = new CxfEndpoint(CXF_ENDPOINT_URI, cxfProducerComponent);
    cxfProducerEndpoint.setBeanId("cxfProducerEndpoint");
    cxfProducerEndpoint.setServiceClass(GreetingService.class);

    // Not for use in production
    HostnameVerifier hostnameVerifier = new HostnameVerifier() {
        @Override
        public boolean verify(String hostname, SSLSession session) {
            return true;
        }
    };
    cxfProducerEndpoint.setHostnameVerifier(hostnameVerifier);

    return cxfProducerEndpoint;
}
 
Example 4
Source File: Application.java    From wildfly-camel with Apache License 2.0 6 votes vote down vote up
@Named("cxfProducerEndpointSub")
@Produces
public CxfEndpoint createCxfProducerEndpointSub() {
    CxfComponent cxfProducerComponent = new CxfComponent(this.camelContext);
    CxfEndpoint cxfProducerEndpoint = new CxfEndpoint(CXF_ENDPOINT_SUB_URI, cxfProducerComponent);
    cxfProducerEndpoint.setBeanId("cxfProducerEndpointSub");
    cxfProducerEndpoint.setServiceClass(GreetingService.class);

    // Not for use in production
    HostnameVerifier hostnameVerifier = new HostnameVerifier() {
        @Override
        public boolean verify(String hostname, SSLSession session) {
            return true;
        }
    };
    cxfProducerEndpoint.setHostnameVerifier(hostnameVerifier);

    return cxfProducerEndpoint;
}
 
Example 5
Source File: Application.java    From wildfly-camel with Apache License 2.0 6 votes vote down vote up
@Named("cxfProducerEndpointRel")
@Produces
public CxfEndpoint createCxfProducerEndpointRel() {
    CxfComponent cxfProducerComponent = new CxfComponent(this.camelContext);
    CxfEndpoint cxfProducerEndpoint = new CxfEndpoint(CXF_ENDPOINT_REL_URI, cxfProducerComponent);
    cxfProducerEndpoint.setBeanId("cxfProducerEndpointRel");
    cxfProducerEndpoint.setServiceClass(GreetingService.class);

    // Not for use in production
    HostnameVerifier hostnameVerifier = new HostnameVerifier() {
        @Override
        public boolean verify(String hostname, SSLSession session) {
            return true;
        }
    };
    cxfProducerEndpoint.setHostnameVerifier(hostnameVerifier);

    return cxfProducerEndpoint;
}
 
Example 6
Source File: Application.java    From wildfly-camel-examples with Apache License 2.0 5 votes vote down vote up
@Named("cxfConsumerEndpoint")
@Produces
public CxfEndpoint createCxfConsumerEndpoint() {
    CxfEndpoint cxfConsumerEndpoint = this.camelContext.getEndpoint(CXF_ENDPOINT_URI, CxfEndpoint.class);
    cxfConsumerEndpoint.setBeanId("cxfConsumerEndpoint");
    cxfConsumerEndpoint.setServiceClass(GreetingService.class);

    return cxfConsumerEndpoint;
}
 
Example 7
Source File: ApplicationB.java    From wildfly-camel with Apache License 2.0 5 votes vote down vote up
@Named("cxfConsumerEndpointB")
@Produces
public CxfEndpoint createCxfConsumerEndpoint() {
    CxfComponent cxfConsumerComponent = new CxfComponent(this.camelContext);
    CxfEndpoint cxfConsumerEndpoint = new CxfEndpoint(CXF_ENDPOINT_URI, cxfConsumerComponent);
    cxfConsumerEndpoint.setBeanId("cxfConsumerEndpointB");
    cxfConsumerEndpoint.setServiceClass(GreetingService.class);
    return cxfConsumerEndpoint;
}
 
Example 8
Source File: Application.java    From wildfly-camel with Apache License 2.0 5 votes vote down vote up
@Named("cxfConsumerEndpoint")
@Produces
public CxfEndpoint createCxfConsumerEndpoint() {
    CxfComponent cxfConsumerComponent = new CxfComponent(this.camelContext);
    CxfEndpoint cxfConsumerEndpoint = new CxfEndpoint(CXF_ENDPOINT_URI, cxfConsumerComponent);
    cxfConsumerEndpoint.setBeanId("cxfConsumerEndpoint");
    cxfConsumerEndpoint.setServiceClass(GreetingService.class);
    return cxfConsumerEndpoint;
}
 
Example 9
Source File: Application.java    From wildfly-camel with Apache License 2.0 5 votes vote down vote up
@Named("cxfConsumerEndpointSub")
@Produces
public CxfEndpoint createCxfConsumerEndpointSub() {
    CxfComponent cxfConsumerComponent = new CxfComponent(this.camelContext);
    CxfEndpoint cxfConsumerEndpoint = new CxfEndpoint(CXF_ENDPOINT_SUB_URI, cxfConsumerComponent);
    cxfConsumerEndpoint.setBeanId("cxfConsumerEndpointSub");
    cxfConsumerEndpoint.setServiceClass(GreetingService.class);
    return cxfConsumerEndpoint;
}
 
Example 10
Source File: Application.java    From wildfly-camel with Apache License 2.0 5 votes vote down vote up
@Named("cxfConsumerEndpointRel")
@Produces
public CxfEndpoint createCxfConsumerEndpointRel() {
    CxfComponent cxfConsumerComponent = new CxfComponent(this.camelContext);
    CxfEndpoint cxfConsumerEndpoint = new CxfEndpoint(CXF_ENDPOINT_REL_URI, cxfConsumerComponent);
    cxfConsumerEndpoint.setBeanId("cxfConsumerEndpointRel");
    cxfConsumerEndpoint.setServiceClass(GreetingService.class);
    return cxfConsumerEndpoint;
}