Class EndpointHolder
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder
de.iip_ecosphere.platform.support.iip_aas.config.TlsServerAddressHolder
de.iip_ecosphere.platform.support.iip_aas.config.EndpointHolder
A proxy for
Endpoint as we do not want to have setters there.- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate booleanprivate Stringprivate EndpointValidator -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance (deserialization).EndpointHolder(de.iip_ecosphere.platform.support.Endpoint endpoint) Creates an instance from a given instance (serialization).EndpointHolder(EndpointHolder holder) Creates an instance by copying data from a given instance.EndpointHolder(de.iip_ecosphere.platform.support.Schema schema, String host, int port, String path) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.aas.AuthenticationDescriptorReturns the authentication descriptor.de.iip_ecosphere.platform.support.EndpointReturns an endpoint instance constructed from the data in this instance.getHost()Returns the host value.getPath()Returns the endpoint name/path.intgetPort()Returns the port value.de.iip_ecosphere.platform.support.SchemaReturns the schema value.ignorePath(boolean ignorePath) Allows ignoring the specified path, then always returning an empty path.voidDefines the endpoint name/path.voidsetValidator(EndpointValidator validator) Defines an endpoint validator which may change some of the getter results.Methods inherited from class de.iip_ecosphere.platform.support.iip_aas.config.TlsServerAddressHolder
getAppliesToClient, getHostnameVerification, getKeyAlias, getKeyPassword, getKeystore, getKeystoreDescriptor, getKeystoreKey, setAppliesToClient, setHostnameVerification, setKeyAlias, setKeyPassword, setKeystore, setKeystoreKeyMethods inherited from class de.iip_ecosphere.platform.support.iip_aas.config.ServerAddressHolder
getServerAddress, isEphmemeral, isRunning, serverAddressFromJson, setHost, setPort, setRunning, setSchema, toJson
-
Field Details
-
path
-
idStorePrefix
-
ignorePath
private boolean ignorePath -
validator
-
-
Constructor Details
-
EndpointHolder
public EndpointHolder()Creates an instance (deserialization). -
EndpointHolder
public EndpointHolder(de.iip_ecosphere.platform.support.Schema schema, String host, int port, String path) Creates an instance.- Parameters:
schema- the schemahost- the host nameport- the portpath- the path denoting the endpoint
-
EndpointHolder
public EndpointHolder(de.iip_ecosphere.platform.support.Endpoint endpoint) Creates an instance from a given instance (serialization).- Parameters:
endpoint- the instance to take data from
-
EndpointHolder
Creates an instance by copying data from a given instance. Does not copy thevalidator. Takes over whether paths shall be ignored.- Parameters:
holder- the holder to copy from
-
-
Method Details
-
setValidator
Defines an endpoint validator which may change some of the getter results.- Parameters:
validator- the validator
-
getPath
Returns the endpoint name/path.- Returns:
- the endpoint name/path
-
ignorePath
Allows ignoring the specified path, then always returning an empty path.- Parameters:
ignorePath- whether the path shall be ignored- Returns:
- this for chaining
-
setPath
Defines the endpoint name/path. [required by data mapper]- Parameters:
path- the endpoint name/path
-
getPort
public int getPort()Returns the port value.- Overrides:
getPortin classServerAddressHolder- Returns:
- the port (may be negative, indicates ephemerial)
-
getHost
Returns the host value.- Overrides:
getHostin classServerAddressHolder- Returns:
- the host
-
getSchema
public de.iip_ecosphere.platform.support.Schema getSchema()Returns the schema value.- Overrides:
getSchemain classServerAddressHolder- Returns:
- the schema
-
getEndpoint
public de.iip_ecosphere.platform.support.Endpoint getEndpoint()Returns an endpoint instance constructed from the data in this instance.- Returns:
- the endpoint
-
getAuthentication
public de.iip_ecosphere.platform.support.aas.AuthenticationDescriptor getAuthentication()Returns the authentication descriptor.- Returns:
- the authentication descriptor, null for none
-