Class ProtocolAddressHolder
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.ProtocolAddressHolder
A proxy for
ServerAddress with a protocol, as we do not want to have setters there.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance (deserialization).ProtocolAddressHolder(de.iip_ecosphere.platform.support.Schema schema, String host, int port, String protocol) Creates an instance.ProtocolAddressHolder(de.iip_ecosphere.platform.support.ServerAddress address, String protocol) Creates an instance from a given instance (serialization). -
Method Summary
Modifier and TypeMethodDescriptionReturns the netmask/network Java regex.Returns the endpoint name/path.voidsetNetmask(String netmask) Defines the netmask/network Java regex.voidsetProtocol(String protocol) Defines the protocol name.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
getHost, getPort, getSchema, getServerAddress, isEphmemeral, isRunning, serverAddressFromJson, setHost, setPort, setRunning, setSchema, toJson
-
Field Details
-
protocol
-
netmask
-
-
Constructor Details
-
ProtocolAddressHolder
public ProtocolAddressHolder()Creates an instance (deserialization). -
ProtocolAddressHolder
public ProtocolAddressHolder(de.iip_ecosphere.platform.support.Schema schema, String host, int port, String protocol) Creates an instance.- Parameters:
schema- the schemahost- the host nameport- the portprotocol- a name denoting the protocol
-
ProtocolAddressHolder
public ProtocolAddressHolder(de.iip_ecosphere.platform.support.ServerAddress address, String protocol) Creates an instance from a given instance (serialization).- Parameters:
address- the instance to take data fromprotocol- the protocol
-
-
Method Details
-
getProtocol
Returns the endpoint name/path.- Returns:
- the endpoint name/path
-
setProtocol
Defines the protocol name. [required by data mapper]- Parameters:
protocol- the protocol name
-
getNetmask
Returns the netmask/network Java regex.- Returns:
- the netmask/network Java regex
-
setNetmask
Defines the netmask/network Java regex. [required by data mapper]- Parameters:
netmask- the netmask
-