Class SocketInterceptorConfig


  • public class SocketInterceptorConfig
    extends java.lang.Object
    Contains the configuration for interceptor socket.
    • Constructor Detail

      • SocketInterceptorConfig

        public SocketInterceptorConfig()
    • Method Detail

      • getClassName

        public java.lang.String getClassName()
        Returns the name of the SocketInterceptor implementation class.
        Returns:
        name of the SocketInterceptor implementation class
      • setClassName

        public SocketInterceptorConfig setClassName​(@Nonnull
                                                    java.lang.String className)
        Sets the name for the SocketInterceptor implementation class.
        Parameters:
        className - the name of the SocketInterceptor implementation class to set
        Returns:
        this SocketInterceptorConfig instance
      • setImplementation

        public SocketInterceptorConfig setImplementation​(@Nonnull
                                                         java.lang.Object implementation)
        Sets the SocketInterceptor implementation object.
        Parameters:
        implementation - the SocketInterceptor implementation object to set
        Returns:
        this SocketInterceptorConfig instance
      • getImplementation

        public java.lang.Object getImplementation()
        Returns the SocketInterceptor implementation object.
        Returns:
        the SocketInterceptor implementation object
      • isEnabled

        public boolean isEnabled()
        Returns if this configuration is enabled.
        Returns:
        true if enabled, false otherwise
      • setEnabled

        public SocketInterceptorConfig setEnabled​(boolean enabled)
        Enables and disables this configuration.
        Parameters:
        enabled - true to enable, false to disable
      • setProperty

        public SocketInterceptorConfig setProperty​(java.lang.String name,
                                                   java.lang.String value)
        Sets a property.
        Parameters:
        name - the name of the property to set
        value - the value of the property to set
        Returns:
        the updated SocketInterceptorConfig
        Throws:
        java.lang.NullPointerException - if name or value is null
      • getProperty

        public java.lang.String getProperty​(java.lang.String name)
        Gets a property.
        Parameters:
        name - the name of the property to get
        Returns:
        the value of the property, null if not found
        Throws:
        java.lang.NullPointerException - if name is null
      • getProperties

        public java.util.Properties getProperties()
        Gets all properties.
        Returns:
        the properties
      • setProperties

        public SocketInterceptorConfig setProperties​(java.util.Properties properties)
        Sets the properties.
        Parameters:
        properties - the properties to set
        Returns:
        the updated SSLConfig
        Throws:
        java.lang.IllegalArgumentException - if properties is null
      • equals

        public final boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object