Пример #1
0
 /**
  * Unregisters a service endpoint.
  *
  * @param path the endpoint path
  */
 public synchronized void unregisterService(String path) {
   if (delegate == null) {
     // case where the endpoint is undeployed before it has been activated
     for (Iterator<EndpointConfiguration> it = configurations.iterator(); it.hasNext(); ) {
       EndpointConfiguration configuration = it.next();
       if (configuration.getServicePath().equals(path)) {
         it.remove();
         return;
       }
     }
     return;
   }
   ServletAdapter adapter = delegate.unregisterServletAdapter(path);
   if (adapter != null) {
     container.removeEndpoint(adapter);
   }
 }