Class MapperEndpoint


  • public final class MapperEndpoint
    extends Object
    Configuration class for custom mappers.
    • Constructor Detail

      • MapperEndpoint

        public MapperEndpoint()
    • Method Detail

      • getHost

        public String getHost()
        Gets the host name or IP address of this mapper.
        Returns:
        The host name.
      • setHost

        public void setHost​(String host)
        Sets the host name or IP address of this mapper.
        Parameters:
        host - The host name or IP address.
        Throws:
        NullPointerException - if host is null.
      • getPort

        public Integer getPort()
        Gets the port of this mapper.
        Returns:
        the port.
      • setPort

        public void setPort​(Integer port)
        Sets the port of this mapper.
        Parameters:
        port - The port.
        Throws:
        NullPointerException - if port is null.
      • getUri

        public String getUri()
        Gets the uri of this mapper.
        Returns:
        the uri.
      • setUri

        public void setUri​(String uri)
        Sets the uri of this mapper.
        Parameters:
        uri - The uri.
        Throws:
        NullPointerException - if uri is null.
      • isTlsEnabled

        public boolean isTlsEnabled()
        Checks whether the connection to the message mapping service is secured using TLS.

        The default value of this property is true.

        Returns:
        true if the connection to the mapper is secured using TLS.
      • setTlsEnabled

        public void setTlsEnabled​(Boolean flag)
        Sets whether the connection to the message mapping service should be secured using TLS.

        The default value of this property is true.

        Parameters:
        flag - true if the connection to the mapper should be secured using TLS.
        Throws:
        NullPointerException - if ssl is null.
      • from

        public static MapperEndpoint from​(String host,
                                          int port,
                                          String uri,
                                          boolean tlsEnabled)
        Generate a mapperEndpoint from the given parameters.
        Parameters:
        host - The host on which the mapper service is listening
        port - The port on which the mapper service is listening
        uri - The uri on which the mapper service is listening
        tlsEnabled - Whether or not this connection is secure
        Returns:
        The constructed mapperEndpoint