本文整理了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
暂无
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!