org.apache.cxf.endpoint.Server.start()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中org.apache.cxf.endpoint.Server.start()方法的一些代码示例,展示了Server.start()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.start()方法的具体详情如下:
包路径:org.apache.cxf.endpoint.Server
类名称:Server
方法名:start

Server.start介绍

暂无

代码示例

代码示例来源:origin: kiegroup/jbpm

@BeforeClass
public static void initialize() throws Exception {
  dateFormatStr = "yyyy-MM-dd";
  System.setProperty("org.jbpm.event.emitters.elasticsearch.date_format", dateFormatStr);
  FakeElasticSearchRESTApplication application = new FakeElasticSearchRESTApplication(responseCollector);
  RuntimeDelegate delegate = RuntimeDelegate.getInstance();
  JAXRSServerFactoryBean bean = delegate.createEndpoint(application,
                             JAXRSServerFactoryBean.class);        
  String url = "http://localhost:9998" + bean.getAddress();
  bean.setAddress(url);
  server = bean.create();
  server.start();
  
  System.setProperty("org.jbpm.event.emitters.elasticsearch.url", url);
}

代码示例来源:origin: kiegroup/jbpm

@BeforeClass
public static void initialize() throws Exception {
  FakeElasticSearchRESTApplication application = new FakeElasticSearchRESTApplication(responseCollector);
  RuntimeDelegate delegate = RuntimeDelegate.getInstance();
  JAXRSServerFactoryBean bean = delegate.createEndpoint(application, JAXRSServerFactoryBean.class);
  String url = "http://localhost:9998" + bean.getAddress();
  bean.setAddress(url);
  server = bean.create();
  server.start();
  System.setProperty("org.jbpm.event.emitters.elasticsearch.url", url);
}

代码示例来源:origin: org.mule.modules/mule-module-cxf

@Override
public void start() throws MuleException
{
  // Start the CXF Server
  if (server != null)
  {
    server.start();
  }
}

代码示例来源:origin: org.apache.camel/camel-cxf

@Override
protected void doStart() throws Exception {
  server.start();
}

代码示例来源:origin: org.openehealth.ipf.platform-camel/ipf-platform-camel-ihe-ws

@Override
  protected void doStart() throws Exception {
    if (server != null) {
      server.start();
    }
    super.doStart();
  }
}

代码示例来源:origin: org.apache.camel/camel-cxf

@Override
protected void doStart() throws Exception {
  super.doStart();
  if (server == null) {
    server = createServer();
  }
  server.start();
}

代码示例来源:origin: org.apache.camel/camel-cxf

@Override
protected void doStart() throws Exception {
  super.doStart();
  if (server == null) {
    server = createServer();
  }
  server.start();
}

代码示例来源:origin: org.apache.cxf/cxf-core

@ManagedOperation
public void start() {
  if (state == State.STARTED) {
    return;
  }
  ServerLifeCycleManager mgr = bus.getExtension(ServerLifeCycleManager.class);
  if (mgr != null) {
    mgr.registerListener(this);
  }
  server.start();
}

代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs

@ManagedOperation        
public void start() {
  if (state == State.STARTED) {
    return;
  }
  ServerLifeCycleManager mgr = bus.getExtension(ServerLifeCycleManager.class);
  if (mgr != null) {
    mgr.registerListener(this);
  }
  server.start();
}

代码示例来源:origin: org.switchyard.components/switchyard-component-soap

/**
 * Publish the JAX-WS endpoint.
 * @param publishUrl The url to publish the endpoint to
 */
public void publish(String publishUrl) {
  _publishUrl = publishUrl;
  SOAPLogger.ROOT_LOGGER.publishingWebServiceAt(_publishUrl);
  _svrFactory.setAddress(publishUrl);
  _server = _svrFactory.create();
  _server.start();
}

代码示例来源:origin: apache/cxf

@ManagedOperation
public void start() {
  if (state == State.STARTED) {
    return;
  }
  ServerLifeCycleManager mgr = bus.getExtension(ServerLifeCycleManager.class);
  if (mgr != null) {
    mgr.registerListener(this);
  }
  server.start();
}

代码示例来源:origin: org.apache.cxf/cxf-api

@ManagedOperation        
public void start() {
  if (state == State.STARTED) {
    return;
  }
  ServerLifeCycleManager mgr = bus.getExtension(ServerLifeCycleManager.class);
  if (mgr != null) {
    mgr.registerListener(this);
  }
  server.start();
}

代码示例来源:origin: jboss-switchyard/components

/**
 * Publish the JAX-WS endpoint.
 * @param publishUrl The url to publish the endpoint to
 */
public void publish(String publishUrl) {
  _publishUrl = publishUrl;
  SOAPLogger.ROOT_LOGGER.publishingWebServiceAt(_publishUrl);
  _svrFactory.setAddress(publishUrl);
  _server = _svrFactory.create();
  _server.start();
}

代码示例来源:origin: apache/cxf

@Override
  public Object execute() throws Exception {
    Bus b = getBus(busName);
    ServerRegistry reg = b.getExtension(ServerRegistry.class);
    List<Server> servers = reg.getServers();
    for (Server serv : servers) {
      if (endpoint.equals(serv.getEndpoint().getEndpointInfo().getName().getLocalPart())) {
        serv.start();
      }
    }
    return null;
  }
}

代码示例来源:origin: apache/cxf

private void startServer() {
  ServerRegistry reg = serverBus.getExtension(ServerRegistry.class);
  List<Server> servers = reg.getServers();
  for (Server serv : servers) {
    serv.start();
  }
}

代码示例来源:origin: Talend/tesb-rt-se

protected ApplicationServer() throws Exception {
  PersonApplication application = new PersonApplication();
  RuntimeDelegate delegate = RuntimeDelegate.getInstance();
  JAXRSServerFactoryBean bean = delegate.createEndpoint(application, JAXRSServerFactoryBean.class);
  bean.setAddress("http://localhost:8080/services" + bean.getAddress());
  server = bean.create();
  server.start();
}

代码示例来源:origin: Talend/tesb-rt-se

protected ApplicationServer() throws Exception {
  AttachmentApplication application = new AttachmentApplication();
  RuntimeDelegate delegate = RuntimeDelegate.getInstance();
  JAXRSServerFactoryBean bean = delegate.createEndpoint(application, JAXRSServerFactoryBean.class);
  bean.setAddress("http://localhost:8080/services" + bean.getAddress());
  bean.create().start();
}

代码示例来源:origin: cschneider/Karaf-Tutorial

public void startService() {
  PersonServiceImpl personServiceImpl = new PersonServiceImpl();
  JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
  factory.setAddress("http://localhost:8282/person");
  factory.setServiceClass(PersonService.class);
  factory.setServiceBean(personServiceImpl);
  Server server = factory.create();
  server.start();
}

代码示例来源:origin: Talend/tesb-rt-se

private static Server startApplication(Application app) {
  RuntimeDelegate delegate = RuntimeDelegate.getInstance();
  JAXRSServerFactoryBean bean = delegate.createEndpoint(app, JAXRSServerFactoryBean.class);
  
  
  
  bean.setAddress("http://localhost:8080" + bean.getAddress());
  bean.setStart(false);
  Server server = bean.create();
  JettyHTTPDestination dest = (JettyHTTPDestination)server.getDestination();
  JettyHTTPServerEngine engine = (JettyHTTPServerEngine)dest.getEngine();
  engine.setSessionSupport(true);
  
  server.start();
  return server;
}

代码示例来源:origin: Talend/tesb-rt-se

private static Server startApplication(Application app) {
  RuntimeDelegate delegate = RuntimeDelegate.getInstance();
  JAXRSServerFactoryBean bean = delegate.createEndpoint(app, JAXRSServerFactoryBean.class);
  
  
  
  bean.setAddress("http://localhost:8080" + bean.getAddress());
  bean.setStart(false);
  Server server = bean.create();
  JettyHTTPDestination dest = (JettyHTTPDestination)server.getDestination();
  JettyHTTPServerEngine engine = (JettyHTTPServerEngine)dest.getEngine();
  engine.setSessionSupport(true);
  
  server.start();
  return server;
}

相关文章