本文整理了Java中gov.nist.toolkit.installation.server.Installation.defaultServiceSessionName()
方法的一些代码示例,展示了Installation.defaultServiceSessionName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Installation.defaultServiceSessionName()
方法的具体详情如下:
包路径:gov.nist.toolkit.installation.server.Installation
类名称:Installation
方法名:defaultServiceSessionName
暂无
代码示例来源:origin: usnistgov/iheos-toolkit2
public static void installServiceEnvironment() {
File envFile = Installation.instance().internalEnvironmentFile(DEFAULTENVIRONMENTNAME);
if (envFile == null || !envFile.exists()) throw new EnvironmentNotSelectedException("Default Environment not configured - file " + envFile + " not found.");
new EnvSetting(Installation.defaultServiceSessionName(), DEFAULTENVIRONMENTNAME, envFile);
}
代码示例来源:origin: usnistgov/iheos-toolkit2
/**
* Use to initialize when implementing a service
* @return
*/
public static ToolkitApi forServiceUse() {
if (api == null) {
api = new ToolkitApi();
EnvSetting.installServiceEnvironment();
api.session = new Session(
Installation.instance().warHome(),
Installation.defaultServiceSessionName());
api.internalUse = false;
return api;
}
if (api.internalUse) {
String msg = "Engine initialized for Internal Use - cannot reinitialize for Service Use";
logger.fatal(msg);
throw new EngineInitializationException(msg);
}
return api;
}
内容来源于网络,如有侵权,请联系作者删除!