org.mule.runtime.core.api.util.FileUtils.getResourcePath()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(145)

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

FileUtils.getResourcePath介绍

暂无

代码示例

代码示例来源:origin: mulesoft/mule

public void setTrustStorePath(String trustStorePath) throws IOException {
 String trustStoreResource = FileUtils.getResourcePath(trustStorePath, getClass());
 if (trustStoreResource == null) {
  throw new IOException(String.format("Resource %s could not be found", trustStorePath));
 }
 tlsConfiguration.setTrustStore(trustStorePath);
}

代码示例来源:origin: org.mule.runtime/mule-core

public static String getResourcePath(String resourceName, Class callingClass) throws IOException {
 return getResourcePath(resourceName, callingClass, DEFAULT_ENCODING);
}

代码示例来源:origin: org.mule.runtime/mule-core

@Override
public void setTrustStore(String name) throws IOException {
 trustStoreName = name;
 if (null != trustStoreName) {
  trustStoreName = FileUtils.getResourcePath(trustStoreName, getClass());
  if (logger.isDebugEnabled()) {
   logger.debug("Normalised trustStore path to: " + trustStoreName);
  }
 }
}

代码示例来源:origin: org.mule.runtime/mule-core

@Override
public void setKeyStore(String name) throws IOException {
 keyStoreName = name;
 if (null != keyStoreName) {
  keyStoreName = FileUtils.getResourcePath(keyStoreName, getClass());
  if (logger.isDebugEnabled()) {
   logger.debug("Normalised keyStore path to: " + keyStoreName);
  }
 }
}

代码示例来源:origin: org.mule.runtime/mule-core

@Override
public void setClientKeyStore(String name) throws IOException {
 clientKeyStoreName = name;
 if (null != clientKeyStoreName) {
  clientKeyStoreName = FileUtils.getResourcePath(clientKeyStoreName, getClass());
  if (logger.isDebugEnabled()) {
   logger.debug("Normalised clientKeyStore path to: " + clientKeyStoreName);
  }
 }
}

代码示例来源:origin: org.mule.runtime/mule-module-tls

public void setTrustStorePath(String trustStorePath) throws IOException {
 String trustStoreResource = FileUtils.getResourcePath(trustStorePath, getClass());
 if (trustStoreResource == null) {
  throw new IOException(String.format("Resource %s could not be found", trustStorePath));
 }
 tlsConfiguration.setTrustStore(trustStorePath);
}

相关文章