本文整理了Java中gov.nist.toolkit.installation.server.Installation.propertyServiceManager()
方法的一些代码示例,展示了Installation.propertyServiceManager()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Installation.propertyServiceManager()
方法的具体详情如下:
包路径:gov.nist.toolkit.installation.server.Installation
类名称:Installation
方法名:propertyServiceManager
暂无
代码示例来源:origin: usnistgov/iheos-toolkit2
public String wikiBaseAddress() {
return propertyServiceManager().getWikiBaseAddress();
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public void overrideToolkitPort(String port) {
propertyServiceManager().setOverrideToolkitPort(port);
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public List<String> getListenerPortRange() {
return propertyServiceManager().getListenerPortRange();
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public String defaultEnvironmentName() { return propertyServiceManager().getDefaultEnvironment(); }
代码示例来源:origin: usnistgov/iheos-toolkit2
private File getFilePath2(TestInstance testInstance,TestSession testSession) throws IOException {
File dir = new File(
Installation.instance().propertyServiceManager().getTestLogCache().toString() + File.separator +
testSession
// + File.separator + "Results"
);
return new File(dir.toString() + File.separator + testInstance.getId().replace(":",""));
}
}
代码示例来源:origin: usnistgov/iheos-toolkit2
private File getFilePath(TestInstance testInstance,TestSession testSession, String sectionName, boolean write) throws IOException {
File dir = new File(
Installation.instance().propertyServiceManager().getTestLogCache().toString() + File.separator +
testSession + File.separator +
"Results");
if (write)
dir.mkdirs();
if (sectionName == null)
return new File(dir.toString() + File.separator + testInstance.getId().replace(":","") + ".ser");
return new File(dir.toString() + File.separator + testInstance.getId().replace(":","") + sectionName + ".ser");
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public File internalTestkitFile() {
File testkit = propertyServiceManager().getTestkit();
if (testkit != null) {
return testkit;
}
testkit = new File(toolkitxFile(), "testkit");
return testkit;
}
public File internalActorsDir() { return new File(toolkitxFile(), "actors"); }
代码示例来源:origin: usnistgov/iheos-toolkit2
public TestSession getDefaultTestSession() {
String ts = propertyServiceManager().getDefaultTestSession();
if (ts == null || ts.equals("")) return null;
return new TestSession(ts);
}
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public String getToolkitAsFhirServerBaseUrl() {
return "http://" +
propertyServiceManager().getToolkitHost() + ":" + propertyServiceManager().getToolkitPort() +
((getServletContextName().isEmpty()) ? "" : "/" + getServletContextName() ) +
"/fhir";
}
代码示例来源:origin: usnistgov/iheos-toolkit2
private String getEndpointPort(boolean isTLS, boolean isProxy) throws Exception {
if (isTLS && isProxy)
throw new Exception("Proxy does not support TLS");
if (isProxy)
return Installation.instance().propertyServiceManager().getProxyPort();
return (isTLS) ? Installation.instance().propertyServiceManager().getToolkitTlsPort() : Installation.instance().propertyServiceManager().getToolkitPort();
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public boolean useGazelleConfigFeed() {
String c = Installation.instance().propertyServiceManager().getPropertyManager()
.getToolkitGazelleConfigURL();
return c.trim().length() > 0;
}
代码示例来源:origin: usnistgov/iheos-toolkit2
/**
* @param s_ctx StepContext instance
* @param step {@code <TestStep>} element from the textplan.xml
* @param instruction {@code <ImgDetailTransaction>} element from the
* testplan.xml
* @param instruction_output {@code <ImgDetailTransaction>} element from the
* log.xml file.
*/
public ImgDetailTransaction(StepContext s_ctx, OMElement step, OMElement instruction, OMElement instruction_output) {
super(s_ctx, instruction, instruction_output);
pMgr = Installation.instance().propertyServiceManager().getPropertyManager();
this.step = step;
}
代码示例来源:origin: usnistgov/iheos-toolkit2
/**
* @param s_ctx StepContext instance
* @param step {@code <TestStep>} element from the textplan.xml
* @param instruction {@code <EdgeServerTransaction>} element from the
* testplan.xml
* @param instruction_output {@code <ImgDetailTransaction>} element from the
* log.xml file.
*/
public EdgeServerTransaction(StepContext s_ctx, OMElement step, OMElement instruction, OMElement instruction_output) {
super(s_ctx, instruction, instruction_output);
pMgr = Installation.instance().propertyServiceManager().getPropertyManager();
this.step = step;
}
代码示例来源:origin: usnistgov/iheos-toolkit2
@Obsolete
public String getToolkitProxyBaseUrl() {
return "http://" +
propertyServiceManager().getToolkitHost() + ":" + propertyServiceManager().getProxyPort() +
((getServletContextName().isEmpty()) ? "" : "/" + getServletContextName() ) +
"/fhir";
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public boolean isPrivateMesaTesting() {
if (session != null)
logger.debug(session.id() + ": " + "isPrivateMesaTesting");
return Installation.instance().propertyServiceManager().isTestLogCachePrivate();
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public static void initialize() throws XdsException {
File location = new File(Installation.instance().propertyServiceManager().getPropertyManager().getExternalCache());
String error = initialize(location);
if (error != null) {
String msg = "External cache location " + location + " does not exist, is not writeable or is not a directory";
logger.error(msg);
//throw new XdsException(msg, null);
}
initializeDefaultSites();
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public static TestLogCache getTestLogCache() throws IOException {
return new TestLogCache(Installation.instance().propertyServiceManager().getTestLogCache());
}
代码示例来源:origin: usnistgov/iheos-toolkit2
private boolean useActorsFile() {
if (useGazelleConfigFeed())
return false;
return Installation.instance().propertyServiceManager().getPropertyManager()
.isUseActorsFile();
}
代码示例来源:origin: usnistgov/iheos-toolkit2
public List<Result> querySts(SiteSpec siteSpec, String query, Map<String, String> params, boolean persistResult, TestSession testSession) {
setGazelleTruststore();
String environmentName = "default";
Session mySession = new Session(Installation.instance().warHome(), testSession.toString());
mySession.setEnvironment(environmentName);
// Site must exist
if (mySession.getTestSession() == null)
mySession.setTestSession(testSession);
mySession.setSiteSpec(siteSpec);
mySession.setTls(true); // Required for STS
String stsTpName = Installation.instance().propertyServiceManager().getStsTpName();
TestInstance testInstance = new TestInstance(stsTpName, TestSession.DEFAULT_TEST_SESSION);
List<String> sections = new ArrayList<String>();
sections.add(query);
XdsTestServiceManager xtsm = new XdsTestServiceManager(mySession);
List<Result> results = runTestInstance(xtsm, environmentName,testSession,siteSpec,testInstance,sections,params,true, persistResult);
return results;
}
代码示例来源:origin: usnistgov/iheos-toolkit2
protected String mkEndpoint(SimulatorConfig asc, SimulatorConfigElement ele, String actor, boolean isTLS, boolean isProxy) throws Exception {
String transtype = SimDb.getTransactionDirName(ele.transType);
String contextName = Installation.instance().getServletContextName();
return "http"
+ ((isTLS) ? "s" : "")
+ "://"
+ Installation.instance().propertyServiceManager().getToolkitHost()
+ ":"
+ getEndpointPort(isTLS, isProxy)
// + ((isTLS) ? Installation.instance().propertyServiceManager().getToolkitTlsPort() : Installation.instance().propertyServiceManager().getToolkitPort())
// + "/" context name includes preceding /
+ contextName
+ (ele.transType.isHttpOnly() ? "/httpsim/" : "/sim/" )
+ asc.getId()
+ "/" +
actor //asc.getActorType().toLowerCase()
+ "/"
+ transtype;
}
内容来源于网络,如有侵权,请联系作者删除!