Search in sources :

Example 11 with ServerRegistry

use of org.apache.cxf.endpoint.ServerRegistry in project cxf by apache.

the class NoSpringServletClientTest method startServer.

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

Example 12 with ServerRegistry

use of org.apache.cxf.endpoint.ServerRegistry in project cxf by apache.

the class NoSpringServletClientTest method stopServer.

private void stopServer() {
    ServerRegistry reg = serverBus.getExtension(ServerRegistry.class);
    List<Server> servers = reg.getServers();
    for (Server serv : servers) {
        serv.stop();
    }
}
Also used : Server(org.apache.cxf.endpoint.Server) ServerRegistry(org.apache.cxf.endpoint.ServerRegistry)

Aggregations

ServerRegistry (org.apache.cxf.endpoint.ServerRegistry)12 Server (org.apache.cxf.endpoint.Server)9 Bus (org.apache.cxf.Bus)8 Test (org.junit.Test)4 Endpoint (org.apache.cxf.endpoint.Endpoint)3 Fault (org.apache.cxf.interceptor.Fault)3 QName (javax.xml.namespace.QName)2 InterceptorChain (org.apache.cxf.interceptor.InterceptorChain)2 BindingOperationInfo (org.apache.cxf.service.model.BindingOperationInfo)2 ArrayList (java.util.ArrayList)1 ServerImpl (org.apache.cxf.endpoint.ServerImpl)1 Exchange (org.apache.cxf.message.Exchange)1 Service (org.apache.cxf.service.Service)1 BindingInfo (org.apache.cxf.service.model.BindingInfo)1 EndpointInfo (org.apache.cxf.service.model.EndpointInfo)1 InterfaceInfo (org.apache.cxf.service.model.InterfaceInfo)1 OperationInfo (org.apache.cxf.service.model.OperationInfo)1 ServiceInfo (org.apache.cxf.service.model.ServiceInfo)1 Destination (org.apache.cxf.transport.Destination)1 MultiplexDestination (org.apache.cxf.transport.MultiplexDestination)1