本文整理汇总了Java中org.apache.cxf.transport.http.HttpDestinationFactory类的典型用法代码示例。如果您正苦于以下问题:Java HttpDestinationFactory类的具体用法?Java HttpDestinationFactory怎么用?Java HttpDestinationFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HttpDestinationFactory类属于org.apache.cxf.transport.http包,在下文中一共展示了HttpDestinationFactory类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: HttpWsServer
import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
public HttpWsServer(ServerTransportConfig serverConfig) {
super(serverConfig);
this.serverConfig = serverConfig;
// 为了一个端口发布多个服务,增加path以示区分
this.basePath = serverConfig.getContextPath();
this.isjaxws = serverConfig.getProtocolType().equals(Constants.ProtocolType.jaxws);
this.bus.setExtension(new ServletDestinationFactory(), HttpDestinationFactory.class);
}
示例2: BusHolder
import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
public BusHolder(DDBeans metadata)
{
super();
this.metadata = metadata;
bus = new JBossWSBusFactory().createBus();
//Force servlet transport to prevent CXF from using Jetty / http server or other transports
bus.setExtension(new ServletDestinationFactory(), HttpDestinationFactory.class);
}
示例3: initDefaultBus
import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
private static Bus initDefaultBus() {
final ClassLoader cl = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(CxfUtil.class.getClassLoader());
try { // create the bus reusing cxf logic but skipping factory lookup
final Bus bus = BusFactory.newInstance(CXFBusFactory.class.getName()).createBus();
bus.setId(SystemInstance.get().getProperty("openejb.cxf.bus.id", "openejb.cxf.bus"));
final BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);
bindingFactoryMap = (Map<String, BindingFactory>) Reflections.get(bfm, "bindingFactories");
bus.setExtension(new OpenEJBHttpDestinationFactory(), HttpDestinationFactory.class);
// ensure client proxies can use app classes
CXFBusFactory.setDefaultBus(Bus.class.cast(Proxy.newProxyInstance(CxfUtil.class.getClassLoader(), new Class<?>[]{Bus.class}, new ClientAwareBusHandler())));
bus.setProperty(ClassUnwrapper.class.getName(), new ClassUnwrapper() {
@Override
public Class<?> getRealClass(final Object o) {
final Class<?> aClass = o.getClass();
Class<?> c = aClass;
while (c.getName().contains("$$")) {
c = c.getSuperclass();
}
return c == Object.class ? aClass : c;
}
});
SystemInstance.get().addObserver(new LifecycleManager());
initAuthenticators();
return bus; // we keep as internal the real bus and just expose to cxf the client aware bus to be able to cast it easily
} finally {
Thread.currentThread().setContextClassLoader(cl);
}
}
示例4: WebServiceProtocol
import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
public WebServiceProtocol() {
super(Fault.class);
bus.setExtension(new ServletDestinationFactory(), HttpDestinationFactory.class);
}
示例5: HttpWsClientTransport
import org.apache.cxf.transport.http.HttpDestinationFactory; //导入依赖的package包/类
/**
* Instantiates a new Abstract proxy client transport.
*
* @param transportConfig
* the transport config
*/
public HttpWsClientTransport(ClientTransportConfig transportConfig) {
super(transportConfig);
this.bus = new ExtensionManagerBus();
this.bus.setExtension(new ServletDestinationFactory(), HttpDestinationFactory.class);
}