本文整理汇总了Java中org.solmix.exchange.Transporter类的典型用法代码示例。如果您正苦于以下问题:Java Transporter类的具体用法?Java Transporter怎么用?Java Transporter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Transporter类属于org.solmix.exchange包,在下文中一共展示了Transporter类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTrasporter
import org.solmix.exchange.Transporter; //导入依赖的package包/类
protected ServletTransporter createTrasporter() throws IOException {
TransporterFactoryManager tf = this.container.getExtension(TransporterFactoryManager.class);
TransporterFactory transporterFactory = tf.getFactory(ServletTransportationFactory.DEFAULT_TRANSPORT_ID);
if (this.transporter == null) {
Transporter ts = transporterFactory.getTransporter(endpointInfo, container);
if (!(ts instanceof ServletTransporter)) {
throw new IllegalArgumentException();
}
this.transporter = (ServletTransporter) ts;
}
getLogger().info("create transporter on {}", endpointInfo.getAddress());
return this.transporter;
}
示例2: getTransporter
import org.solmix.exchange.Transporter; //导入依赖的package包/类
@Override
public Transporter getTransporter(EndpointInfo ei, Container container) throws IOException {
Assert.assertNotNull(ei, "EndpointInfo not null");
r.lock();
try {
return new ServletTransporter(container,ei,ei.getAddress());
} finally {
r.unlock();
}
}