Package redis.clients.jedis.util
Class JedisURIHelper
- java.lang.Object
-
- redis.clients.jedis.util.JedisURIHelper
-
public class JedisURIHelper extends java.lang.ObjectUtility 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 intgetDefaultPort(java.net.URI uri)Get the default port for a Redis URI scheme.static booleanisRedisSSLScheme(java.net.URI uri)Check if the URI uses a Redis SSL scheme.static booleanisValid(java.net.URI uri)Check if the URI is a valid Redis URI.
-
-
-
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://)
-
-