本文整理汇总了Java中org.apache.cxf.transport.Destination类的典型用法代码示例。如果您正苦于以下问题:Java Destination类的具体用法?Java Destination怎么用?Java Destination使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Destination类属于org.apache.cxf.transport包,在下文中一共展示了Destination类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDestination
import org.apache.cxf.transport.Destination; //导入依赖的package包/类
@Override
public Destination getDestination(EndpointInfo endpointInfo, Bus b) throws IOException {
LOG.debug("Create CxfBeanDestination: {}", endpointInfo);
// lookup endpoint from component instead of CamelContext because it may not
// be added to the CamelContext yet.
return new CxfBeanDestination(cxfBeanComponent, b, this, endpointInfo);
}
示例2: getDestination
import org.apache.cxf.transport.Destination; //导入依赖的package包/类
protected Destination getDestination(EndpointInfo ei,
EndpointReferenceType reference,
Bus bus)
throws IOException {
if (reference == null) {
reference = createReference(ei);
}
return new UDPDestination(bus, reference, ei);
}
示例3: initialize
import org.apache.cxf.transport.Destination; //导入依赖的package包/类
@Override
public void initialize(Server server, Bus bus) {
checkZmqConfig();
Destination destination = server.getDestination();
if (!(destination instanceof ZMQDestination)) {
throw new ConfigurationException(new Message("ZMQCONFIGFEATURE_ONLY_ZMQ", LOG));
}
Endpoint ep = server.getEndpoint();
changeTransportUriToZmq(ep);
ZMQDestination zmqDestination = (ZMQDestination)destination;
zmqDestination.setZmqConfig(zmqConfig);
super.initialize(server, bus);
}
示例4: getDestination
import org.apache.cxf.transport.Destination; //导入依赖的package包/类
public Destination getDestination(EndpointInfo endpointInfo) throws IOException {
return getDestination(endpointInfo, bus);
}