Record Class ServerBackend
java.lang.Object
java.lang.Record
org.fhirfrog.frog.server.registry.ServerBackend
- Record Components:
name- human-readable label (e.g. "sparked-au-core", "local-hapi")conformsTo- IG canonical this backend implements (e.g. "http://hl7.org.au/fhir/core")url- FHIR base URL for the servermanaged- true if frog controls the server lifecycle (docker compose)resetPolicy- how to reset between test runsresetEndpoint- reset endpoint path (only when resetPolicy=ENDPOINT)auth- authentication config; null means anonymous
public record ServerBackend(String name, String conformsTo, String url, boolean managed, ResetPolicy resetPolicy, String resetEndpoint, AuthConfig auth)
extends Record
A resolved FHIR server backend that tests can execute against.
Backends are either managed (frog controls the lifecycle via Docker Compose)
or external (pre-provisioned by someone else — e.g. Sparked's AU Core server).
The same record models both cases; the distinction is in managed() and
resetPolicy().
Multiple backends may claim the same conformsTo() canonical — this is the
connectathon model: N implementations, same IG, same tests.
-
Constructor Summary
ConstructorsConstructorDescriptionServerBackend(String name, String conformsTo, String url, boolean managed, ResetPolicy resetPolicy, String resetEndpoint, AuthConfig auth) Creates an instance of aServerBackendrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauth()Returns the value of theauthrecord component.Returns the value of theconformsTorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmanaged()Returns the value of themanagedrecord component.name()Returns the value of thenamerecord component.Returns the value of theresetEndpointrecord component.Returns the value of theresetPolicyrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ServerBackend
public ServerBackend(String name, String conformsTo, String url, boolean managed, ResetPolicy resetPolicy, String resetEndpoint, AuthConfig auth) Creates an instance of aServerBackendrecord class.- Parameters:
name- the value for thenamerecord componentconformsTo- the value for theconformsTorecord componenturl- the value for theurlrecord componentmanaged- the value for themanagedrecord componentresetPolicy- the value for theresetPolicyrecord componentresetEndpoint- the value for theresetEndpointrecord componentauth- the value for theauthrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
conformsTo
Returns the value of theconformsTorecord component.- Returns:
- the value of the
conformsTorecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
managed
public boolean managed()Returns the value of themanagedrecord component.- Returns:
- the value of the
managedrecord component
-
resetPolicy
Returns the value of theresetPolicyrecord component.- Returns:
- the value of the
resetPolicyrecord component
-
resetEndpoint
Returns the value of theresetEndpointrecord component.- Returns:
- the value of the
resetEndpointrecord component
-
auth
Returns the value of theauthrecord component.- Returns:
- the value of the
authrecord component
-