Class JedisURIHelper


  • public class JedisURIHelper
    extends java.lang.Object
    Utility class for handling Jedis URI parsing and validation. This class provides helper methods for working with Redis/Valkey URIs.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getDefaultPort​(java.net.URI uri)
      Get the default port for a Redis URI scheme.
      static boolean isRedisSSLScheme​(java.net.URI uri)
      Check if the URI uses a Redis SSL scheme.
      static boolean isValid​(java.net.URI uri)
      Check if the URI is a valid Redis URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isRedisSSLScheme

        public static boolean isRedisSSLScheme​(java.net.URI uri)
        Check if the URI uses a Redis SSL scheme.
        Parameters:
        uri - the URI to check
        Returns:
        true if the URI uses rediss:// scheme, false otherwise
      • isValid

        public static boolean isValid​(java.net.URI uri)
        Check if the URI is a valid Redis URI.
        Parameters:
        uri - the URI to validate
        Returns:
        true if valid, false otherwise
      • getDefaultPort

        public static int getDefaultPort​(java.net.URI uri)
        Get the default port for a Redis URI scheme.
        Parameters:
        uri - the URI
        Returns:
        the default port (6379 for redis://, 6380 for rediss://)