org.apache.axis2.deployment.util.Utils.getServiceHierarchy()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(106)

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

Utils.getServiceHierarchy介绍

[英]Computes the hierarchical part of the service name if this is such a service path. Ex: filePath = .../repository/services/foo/1.0.0/version.aar -> "foo/1.0.0/" filePath = .../repository/services/version.aar -> ""
[中]如果这是服务路径,则计算服务名称的层次结构部分。例如:文件路径=/repository/services/foo/1.0.0/version。aar->“foo/1.0.0/”文件路径=/存储库/服务/版本。aar->“

代码示例

代码示例来源:origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

/**
 * Retrieve the service name from the deployment path.
 * @param deploymentFilePath Deployment file path
 * @return The service name
 */
public static String getServiceNameFromPath(String repoDir, File deploymentFile) {
  String heirarchy = Utils.getServiceHierarchy(deploymentFile.getAbsolutePath(), repoDir);
  String name = deploymentFile.getName();
  int index = name.lastIndexOf("." + DBConstants.DBS_FILE_EXTENSION);
  if (index == -1) {
    return null;
  }
  name = name.substring(0, index);
  return heirarchy + name;
}

代码示例来源:origin: org.apache.axis2/axis2-kernel

String serviceHierarchy = Utils.getServiceHierarchy(location.getPath(),
    this.directory);
if (serviceHierarchy != null && !"".equals(serviceHierarchy)) {

代码示例来源:origin: apache/axis2-java

String serviceHierarchy = Utils.getServiceHierarchy(location.getPath(),
    this.directory);
if (serviceHierarchy != null && !"".equals(serviceHierarchy)) {

代码示例来源:origin: org.apache.axis2/axis2-kernel

public void deploy(DeploymentFileData deploymentFileData) {
  ClassLoader threadClassLoader = Thread.currentThread().getContextClassLoader();
  String serviceHierarchy = Utils.getServiceHierarchy(deploymentFileData.getAbsolutePath(), 
      this.directory);

代码示例来源:origin: apache/axis2-java

public void deploy(DeploymentFileData deploymentFileData) {
  ClassLoader threadClassLoader = Thread.currentThread().getContextClassLoader();
  String serviceHierarchy = Utils.getServiceHierarchy(deploymentFileData.getAbsolutePath(), 
      this.directory);

代码示例来源:origin: apache/axis2-java

public void undeploy(String fileName) throws DeploymentException {
  try {
    String serviceHierarchy = Utils.getServiceHierarchy(fileName, this.directory);
    fileName = Utils.getShortFileName(fileName);
    fileName = DeploymentEngine.getAxisServiceName(fileName);

代码示例来源:origin: org.apache.axis2/axis2-kernel

public void undeploy(String fileName) throws DeploymentException {
  try {
    String serviceHierarchy = Utils.getServiceHierarchy(fileName, this.directory);
    fileName = Utils.getShortFileName(fileName);
    fileName = DeploymentEngine.getAxisServiceName(fileName);

代码示例来源:origin: apache/axis2-java

public void undeploy(String fileName) throws DeploymentException {
  String serviceHierarchy = Utils.getServiceHierarchy(fileName, this.directory);

代码示例来源:origin: org.apache.axis2/axis2-kernel

public void undeploy(String fileName) throws DeploymentException {
  String serviceHierarchy = Utils.getServiceHierarchy(fileName, this.directory);

代码示例来源:origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

return;
String serviceHierarchy = Utils.getServiceHierarchy(servicePath, this.repoDir);
if (serviceHierarchy == null){
  serviceHierarchy = "";

代码示例来源:origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core

String serviceHierarchy = Utils.getServiceHierarchy(
    deploymentFileData.getAbsolutePath(), this.repoDir);
if (serviceHierarchy == null){

相关文章