Class Domain
java.lang.Object
com.microservices.starter.core.environment.Domain
- All Implemented Interfaces:
Serializable
Domain (DNS) information used at runtime for dynamic application configuration to negotiate
gateway routing and interservice communication appropriately based on the deployed environment.
Required.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Alternate domain names by which this component may be known.getCloud()
The domain to use when the service is called from inside of a cloud environment (e.g.The domain to use when the service is called from inside of docker by another component in docker.getLocal()
The domain to use when calling the service from a local context (e.g.int
hashCode()
void
setAlternates
(List<String> alternates) Alternate domain names by which this component may be known.void
The domain to use when the service is called from inside of a cloud environment (e.g.void
The domain to use when the service is called from inside of docker by another component in docker.void
The domain to use when calling the service from a local context (e.g.toString()
-
Constructor Details
-
Domain
public Domain()
-
-
Method Details
-
getLocal
The domain to use when calling the service from a local context (e.g. localhost) -
getDocker
The domain to use when the service is called from inside of docker by another component in docker. -
getCloud
The domain to use when the service is called from inside of a cloud environment (e.g. k8s) by another component in that environment. -
getAlternates
Alternate domain names by which this component may be known. This primarily serves to inform the SAN value on one or more https keystore certs so that trust can be properly established regardless of environment. Since the SAN value is set at cert creation during initial project construction, it is useful to set all the possible values here, so they are available at inception. This should include domain overrides that may be set in other environments at runtime (via environment variable). -
setLocal
The domain to use when calling the service from a local context (e.g. localhost) -
setDocker
The domain to use when the service is called from inside of docker by another component in docker. -
setCloud
The domain to use when the service is called from inside of a cloud environment (e.g. k8s) by another component in that environment. -
setAlternates
Alternate domain names by which this component may be known. This primarily serves to inform the SAN value on one or more https keystore certs so that trust can be properly established regardless of environment. Since the SAN value is set at cert creation during initial project construction, it is useful to set all the possible values here, so they are available at inception. This should include domain overrides that may be set in other environments at runtime (via environment variable). -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-