gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-21 09:31:05 25 4
gpt4 key购买 nike

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

WebService.getClientPublishUrl介绍

暂无

代码示例

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

URI clientPublishURI = webService.getClientPublishUrl().toURI();
if(!clientPublishURI.isOpaque()) {
  parent = new File(clientPublishURI);
} else {
  parent =  new File(webService.getClientPublishUrl().getPath());
parent = new File(webService.getClientPublishUrl().getPath());

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

/**
 * write the descriptor class to a DOM tree and return it
 *
 * @param parent node for the DOM tree
 * @param node name for the descriptor
 * @param the descriptor to write
 * @return the DOM tree top node
 */    
public Node writeDescriptor(Node parent, String nodeName, 
              WebService webService) {
  Node webServiceNode = 
    super.writeDescriptor(parent, nodeName, webService);
  appendTextChild(webServiceNode, 
          WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
          webService.getName());
  if( webService.hasClientPublishUrl() ) {
    URL url = webService.getClientPublishUrl();
    appendTextChild(webServiceNode, 
            WebServicesTagNames.CLIENT_WSDL_PUBLISH_URL,
            url.toExternalForm());
  }
  return webServiceNode;
}

代码示例来源: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.main.deployment/dol

/**
 * write the descriptor class to a DOM tree and return it
 *
 * @param parent node for the DOM tree
 * @param node name for the descriptor
 * @param the descriptor to write
 * @return the DOM tree top node
 */    
public Node writeDescriptor(Node parent, String nodeName, 
              WebService webService) {
  Node webServiceNode = 
    super.writeDescriptor(parent, nodeName, webService);
  appendTextChild(webServiceNode, 
          WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME,
          webService.getName());
  if( webService.hasClientPublishUrl() ) {
    URL url = webService.getClientPublishUrl();
    appendTextChild(webServiceNode, 
            WebServicesTagNames.CLIENT_WSDL_PUBLISH_URL,
            url.toExternalForm());
  }
  return webServiceNode;
}

代码示例来源: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;
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com