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

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

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

WebService.getType介绍

暂无

代码示例

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

boolean jaxrpcEndPtFound = false;
String declaredType = ws.getType();
if(declaredType != null) {
  if(declaredType.equals("JAX-WS")) {

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

相关文章