Class ProtocolAddressHolder


public class ProtocolAddressHolder extends TlsServerAddressHolder
A proxy for ServerAddress with a protocol, as we do not want to have setters there.
Author:
Holger Eichelberger, SSE
  • Field Details

    • protocol

      private String protocol
    • netmask

      private String 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 schema
      host - the host name
      port - the port
      protocol - 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 from
      protocol - the protocol
  • Method Details

    • getProtocol

      public String getProtocol()
      Returns the endpoint name/path.
      Returns:
      the endpoint name/path
    • setProtocol

      public void setProtocol(String protocol)
      Defines the protocol name. [required by data mapper]
      Parameters:
      protocol - the protocol name
    • getNetmask

      public String getNetmask()
      Returns the netmask/network Java regex.
      Returns:
      the netmask/network Java regex
    • setNetmask

      public void setNetmask(String netmask)
      Defines the netmask/network Java regex. [required by data mapper]
      Parameters:
      netmask - the netmask