本文整理了Java中com.sun.enterprise.deployment.WebService.getClientPublishUrl()
方法的一些代码示例,展示了WebService.getClientPublishUrl()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebService.getClientPublishUrl()
方法的具体详情如下:
包路径:com.sun.enterprise.deployment.WebService
类名称: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;
}
内容来源于网络,如有侵权,请联系作者删除!