public RestulfulServerConfiguration createConfiguration() { RestulfulServerConfiguration result = new RestulfulServerConfiguration(); result.setResourceBindings(getResourceBindings()); result.setServerBindings(getServerBindings()); result.setImplementationDescription(getImplementationDescription()); result.setServerVersion(getServerVersion()); result.setServerName(getServerName()); result.setFhirContext(getFhirContext()); result.setServerAddressStrategy(myServerAddressStrategy); try (InputStream inputStream = getClass().getResourceAsStream("/META-INF/MANIFEST.MF")) { if (inputStream != null) { Manifest manifest = new Manifest(inputStream); String value = manifest.getMainAttributes().getValue("Build-Time"); result.setConformanceDate(new InstantDt(value)); } } catch (Exception e) { // fall through } return result; }
/** * Constructor allowing the description, servername and server to be set * * @param ctx * the {@link FhirContext} instance. * @param implementationDescription * the implementation description. If null, "" is used * @param serverName * the server name. If null, "" is used * @param serverVersion * the server version. If null, "" is used */ protected AbstractJaxRsConformanceProvider(FhirContext ctx, String implementationDescription, String serverName, String serverVersion) { super(ctx); serverConfiguration.setFhirContext(ctx); serverConfiguration.setImplementationDescription(StringUtils.defaultIfEmpty(implementationDescription, "")); serverConfiguration.setServerName(StringUtils.defaultIfEmpty(serverName, "")); serverConfiguration.setServerVersion(StringUtils.defaultIfEmpty(serverVersion, "")); }
/** * Constructor allowing the description, servername and server to be set * * @param implementationDescription * the implementation description. If null, "" is used * @param serverName * the server name. If null, "" is used * @param serverVersion * the server version. If null, "" is used */ protected AbstractJaxRsConformanceProvider(String implementationDescription, String serverName, String serverVersion) { serverConfiguration.setFhirContext(getFhirContext()); serverConfiguration.setImplementationDescription(StringUtils.defaultIfEmpty(implementationDescription, "")); serverConfiguration.setServerName(StringUtils.defaultIfEmpty(serverName, "")); serverConfiguration.setServerVersion(StringUtils.defaultIfEmpty(serverVersion, "")); }
public RestulfulServerConfiguration createConfiguration() { RestulfulServerConfiguration result = new RestulfulServerConfiguration(); result.setResourceBindings(getResourceBindings()); result.setServerBindings(getServerBindings()); result.setImplementationDescription(getImplementationDescription()); result.setServerVersion(getServerVersion()); result.setServerName(getServerName()); result.setFhirContext(getFhirContext()); result.setServerAddressStrategy(myServerAddressStrategy); try (InputStream inputStream = getClass().getResourceAsStream("/META-INF/MANIFEST.MF")) { if (inputStream != null) { Manifest manifest = new Manifest(inputStream); String value = manifest.getMainAttributes().getValue("Build-Time"); result.setConformanceDate(new InstantDt(value)); } } catch (Exception e) { // fall through } return result; }