public final class ServiceLocator
extends java.lang.Object
implements de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizer
Unresolved directive in <stdin> - include::../doc/userguide/ESL_Structure.adoc[tag=ServiceLocator]
| Constructor and Description |
|---|
ServiceLocator() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
endpointURLForInterface(de.gematik.ti.epa.fdv.service.localization.api.ServiceInterfaceName serviceInterfaceName)
After successful lookup, it returns endpointURL for a given interface name
|
java.lang.String |
getHomeCommunityId()
Returns home community (OID, which the file system provider has requested from DIMDI)
|
de.gematik.ti.epa.fdv.service.localization.api.LookupStatus |
getLookupStatus()
Returns the status of service lookup in DNS
|
void |
lookup(java.lang.String fqdn,
java.util.function.Consumer<de.gematik.ti.epa.fdv.service.localization.api.LookupStatus> callback)
start a new DNS lookup, e.g. if previous one ended erroneously
|
public void lookup(java.lang.String fqdn,
java.util.function.Consumer<de.gematik.ti.epa.fdv.service.localization.api.LookupStatus> callback)
start a new DNS lookup, e.g. if previous one ended erroneously
lookup in interface de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizercallback - optional Consumer parameter to get callback the lookup statuspublic java.net.URL endpointURLForInterface(de.gematik.ti.epa.fdv.service.localization.api.ServiceInterfaceName serviceInterfaceName)
After successful lookup, it returns endpointURL for a given interface name
endpointURLForInterface in interface de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizerserviceInterfaceName - name of the gateway interface where to get the URL forpublic de.gematik.ti.epa.fdv.service.localization.api.LookupStatus getLookupStatus()
Returns the status of service lookup in DNS
getLookupStatus in interface de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizerpublic java.lang.String getHomeCommunityId()
Returns home community (OID, which the file system provider has requested from DIMDI)
getHomeCommunityId in interface de.gematik.ti.epa.fdv.service.localization.spi.IServiceLocalizer