com.sun.enterprise.deployment.WebService.getEndpoints()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(162)

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

WebService.getEndpoints介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.deployment/dol

public Collection<WebServiceEndpoint> getEndpoints() {
  Collection allEndpoints = new HashSet();
  for(WebService webService : webServices) {
    allEndpoints.addAll( webService.getEndpoints() );
  }
  return allEndpoints;
}

代码示例来源:origin: org.glassfish.main.deployment/dol

public Collection<WebServiceEndpoint> getEndpoints() {
  Collection allEndpoints = new HashSet();
  for(WebService webService : webServices) {
    allEndpoints.addAll( webService.getEndpoints() );
  }
  return allEndpoints;
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

public synchronized void deploy(WebServicesDescriptor wsDesc, WebServiceDeploymentNotifier notifier) {
  for(WebService svc : wsDesc.getWebServices()) {
    for(WebServiceEndpoint endpoint : svc.getEndpoints()) {
      deploy(endpoint);
      notifier.notifyDeployed(endpoint);
    }
  }
}

代码示例来源:origin: org.glassfish.main.webservices/webservices-connector

/**
 * Adds  a new DOL descriptor instance to the descriptor 
 * instance associated with this XMLNode
 *
 * @param descriptor the new descriptor
 */
@Override
public void addDescriptor(Object descriptor) {    
  WebServicesDescriptor webServicesDesc = 
    bundleDescriptor.getWebServices();
  WebService webService = (WebService) descriptor;
  webServicesDesc.addWebService(webService);
  
  for(Iterator iter = webService.getEndpoints().iterator(); 
    iter.hasNext();) {
    WebServiceEndpoint next = (WebServiceEndpoint) iter.next();
    if( !next.resolveComponentLink() ) {
      logger.log(Level.INFO, LogUtils.WS_COMP_LINK_NOT_VALID,
          new Object[]{next.getEndpointName(), next.getLinkName()});
    }
  }
  
}

代码示例来源:origin: org.glassfish.deployment/dol

/**
 * Adds  a new DOL descriptor instance to the descriptor 
 * instance associated with this XMLNode
 *
 * @param descriptor the new descriptor
 */
public void addDescriptor(Object descriptor) {    
  WebServicesDescriptor webServicesDesc = 
    bundleDescriptor.getWebServices();
  WebService webService = (WebService) descriptor;
  webServicesDesc.addWebService(webService);
  
  for(Iterator iter = webService.getEndpoints().iterator(); 
    iter.hasNext();) {
    WebServiceEndpoint next = (WebServiceEndpoint) iter.next();
    if( !next.resolveComponentLink() ) {
      DOLUtils.getDefaultLogger().info("Warning: Web service endpoint " + next.getEndpointName() + " component link " + next.getLinkName() + " is not valid");                
    }
  }
  
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

private NoMetadataModelInfo createNoMetadataModelInfo
    (WebService webService, JaxrpcMappingDescriptor mappingDesc)
    throws Exception {
  NoMetadataModelInfo modelInfo = rpcFactory.createNoMetadataModelInfo();
  URL wsdlFileUrl = webService.getWsdlFileUrl();
  Collection endpoints = webService.getEndpoints();
  if( endpoints.size() != 1 ) {
    throw new Exception
        ("Deployment code generation error for webservice " +
            webService.getName() + ". " +
            " jaxrpc-mapping-file is required if web service has " +
            "multiple endpoints");
  }
  WebServiceEndpoint endpoint = (WebServiceEndpoint)
      endpoints.iterator().next();
  modelInfo.setLocation(wsdlFileUrl.toExternalForm());
  modelInfo.setInterfaceName(endpoint.getServiceEndpointInterface());
  modelInfo.setPortName(endpoint.getWsdlPort());
  addNamespaceMappingRegistry(modelInfo, mappingDesc);
  return modelInfo;
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

for (WebServiceEndpoint endpoint : ws.getEndpoints()) {
  String implClassName;
  if (endpoint.implementedByEjbComponent()) {

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

Collection endpoints = webService.getEndpoints();
       (aWS.getWsdlFileUri() != null) &&
       (webService.getWsdlFileUri().equals(aWS.getWsdlFileUri()))) {
      endpointsCopy.addAll(aWS.getEndpoints());
    } else if ((webService.getWsdlFileUrl() != null) &&
       (aWS.getWsdlFileUrl() != null) &&
       ((webService.getWsdlFileUrl().toString())
        .equals(aWS.getWsdlFileUrl().toString()))) {
      endpointsCopy.addAll(aWS.getEndpoints());

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

Collection endpoints = webService.getEndpoints();
for(Iterator eIter = endpoints.iterator(); eIter.hasNext();) {
  WebServiceEndpoint nextEndpoint = (WebServiceEndpoint) eIter.next();

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

@Override
public void unload(WebServicesApplication container, DeploymentContext context) {
  final WebServiceDeploymentNotifier notifier = getDeploymentNotifier();
  deletePublishedFiles(container.getPublishedFiles());
  Application app = container.getApplication();
  for(WebService svc : app.getWebServiceDescriptors()) {
    for(WebServiceEndpoint endpoint : svc.getEndpoints()) {
      if (notifier != null) {
        notifier.notifyUndeployed(endpoint);
      }
    }
  }
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

private void collectEjbEndpoints(BundleDescriptor bundleDesc) {
  WebServicesDescriptor wsDesc = bundleDesc.getWebServices();
  for (WebService ws : wsDesc.getWebServices()) {
    for (WebServiceEndpoint endpoint : ws.getEndpoints()) {
      //Only add for ejb based endpoints
      if (endpoint.implementedByEjbComponent()) {
        ejbendpoints.add(new EjbEndpoint(endpoint.getEndpointAddressUri(), endpoint.isSecure()));
      }
    }
  }
  //For ejb webservices in war we need to get the extension descriptors
  //from the WebBundleDescriptor and process those too
  //http://monaco.sfbay/detail.jsf?cr=6956406
  for (EjbBundleDescriptor ejbD : bundleDesc.getExtensionsDescriptors(EjbBundleDescriptor.class)) {
    collectEjbEndpoints(ejbD);
  }
}
public boolean stop(ApplicationContext stopContext) {

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

for(WebServiceEndpoint wsep : next.getEndpoints()) {
  wsep.composeFinalWsdlUrl(wsUtil.getWebServerInfoForDAS().getWebServerRootURL(wsep.isSecure()));

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

Collection endpoints = webService.getEndpoints();

代码示例来源:origin: org.glassfish.deployment/dol

public Node writeDescriptor(Node parent, String nodeName,
              WebService descriptor) {
  Node topNode =
      super.writeDescriptor(parent, nodeName, descriptor);
  
  //TODO is this needed?
  //writeDisplayableComponentInfo(topNode, descriptor);
  appendTextChild(topNode,
      WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
      descriptor.getName());
  appendTextChild(topNode, WLWebServicesTagNames.WEBSERVICE_TYPE,
      descriptor.getType());
  appendTextChild(topNode, WLWebServicesTagNames.WSDL_PUBLISH_FILE,
      descriptor.getClientPublishUrl().toString());
  WLWebServiceEndpointNode endpointNode = new WLWebServiceEndpointNode();
  for (WebServiceEndpoint next : descriptor.getEndpoints()) {
    endpointNode.writeDescriptor
        (topNode, WebServicesTagNames.PORT_COMPONENT, next);
  }
  return topNode;
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

if((new WsUtil()).isJAXWSbasedService(webService)) {
  WsUtil wsUtil = new WsUtil();
  Collection<WebServiceEndpoint> endpoints = webService.getEndpoints();
  for(WebServiceEndpoint ep : endpoints) {
    if( ep.implementedByWebComponent() ) {

代码示例来源:origin: org.glassfish.main.deployment/dol

public Node writeDescriptor(Node parent, String nodeName,
              WebService descriptor) {
  Node topNode =
      super.writeDescriptor(parent, nodeName, descriptor);
  
  //TODO is this needed?
  //writeDisplayableComponentInfo(topNode, descriptor);
  appendTextChild(topNode,
      WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
      descriptor.getName());
  appendTextChild(topNode, WLWebServicesTagNames.WEBSERVICE_TYPE,
      descriptor.getType());
  if (descriptor.getClientPublishUrl() != null) {
    appendTextChild(topNode, WLWebServicesTagNames.WSDL_PUBLISH_FILE,
      descriptor.getClientPublishUrl().toString());
  }
  WLWebServiceEndpointNode endpointNode = new WLWebServiceEndpointNode();
  for (WebServiceEndpoint next : descriptor.getEndpoints()) {
    endpointNode.writeDescriptor
        (topNode, WebServicesTagNames.PORT_COMPONENT, next);
  }
  return topNode;
}

代码示例来源:origin: org.glassfish.deployment/dol

/**
 * write the method descriptor class to a query-method DOM tree and 
 * return it
 *
 * @param parent node in the DOM tree 
 * @param node name for the root element of this xml fragment      
 * @param the descriptor to write
 * @return the DOM tree top node
 */
public Node writeDescriptor(Node parent, String nodeName, 
              WebService descriptor) {        
  Node topNode = 
    super.writeDescriptor(parent, nodeName, descriptor);
  writeDisplayableComponentInfo(topNode, descriptor);
  appendTextChild(topNode, 
          WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
          descriptor.getName());
  appendTextChild(topNode, WebServicesTagNames.WSDL_FILE,
          descriptor.getWsdlFileUri());
  appendTextChild(topNode, WebServicesTagNames.JAXRPC_MAPPING_FILE,
          descriptor.getMappingFileUri());
  
  WebServiceEndpointNode endpointNode = new WebServiceEndpointNode();
  for(WebServiceEndpoint next : descriptor.getEndpoints()) {
    endpointNode.writeDescriptor
      (topNode, WebServicesTagNames.PORT_COMPONENT, next);
  }
  return topNode;
}

代码示例来源:origin: org.glassfish.main.webservices/webservices-connector

/**
 * write the method descriptor class to a query-method DOM tree and 
 * return it
 *
 * @param parent node in the DOM tree 
 * @param nodeName name for the root element of this xml fragment
 * @param descriptor the descriptor to write
 * @return the DOM tree top node
 */
public Node writeDescriptor(Node parent, String nodeName, 
              WebService descriptor) {        
  Node topNode = 
    super.writeDescriptor(parent, nodeName, descriptor);
  writeDisplayableComponentInfo(topNode, descriptor);
  appendTextChild(topNode, 
          WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
          descriptor.getName());
  appendTextChild(topNode, WebServicesTagNames.WSDL_FILE,
          descriptor.getWsdlFileUri());
  appendTextChild(topNode, WebServicesTagNames.JAXRPC_MAPPING_FILE,
          descriptor.getMappingFileUri());
  
  WebServiceEndpointNode endpointNode = new WebServiceEndpointNode();
  for(WebServiceEndpoint next : descriptor.getEndpoints()) {
    endpointNode.writeDescriptor
      (topNode, WebServicesTagNames.PORT_COMPONENT, next);
  }
  return topNode;
}

相关文章