类 RedisURI
- java.lang.Object
-
- com.moilioncircle.redis.replicator.RedisURI
-
- 所有已实现的接口:
Serializable,Comparable<RedisURI>
public final class RedisURI extends Object implements Comparable<RedisURI>, Serializable
- 从以下版本开始:
- 2.4.0
- 作者:
- Leon Chen
- 另请参阅:
- 序列化表格
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intcompareTo(RedisURI that)booleanequals(Object o)StringgetAuthority()FileTypegetFileType()StringgetFragment()StringgetHost()StringgetPassword()StringgetPath()intgetPort()StringgetQuery()StringgetScheme()StringgetUser()StringgetUserInfo()inthashCode()booleanisSsl()StringtoASCIIString()StringtoString()URLtoURL()
-
-
-
构造器详细资料
-
RedisURI
public RedisURI(String uri) throws URISyntaxException
-
RedisURI
public RedisURI(URI uri) throws URISyntaxException
- 参数:
uri- uri- 抛出:
URISyntaxException- illegal uri- 从以下版本开始:
- 3.0.0
-
RedisURI
public RedisURI(File file) throws MalformedURLException, URISyntaxException
- 参数:
file- file- 抛出:
URISyntaxException- illegal fileMalformedURLException- illegal file- 从以下版本开始:
- 3.0.0
-
-
方法详细资料
-
getPort
public int getPort()
-
isSsl
public boolean isSsl()
-
getUser
public String getUser()
-
getHost
public String getHost()
-
getPath
public String getPath()
-
getQuery
public String getQuery()
-
getScheme
public String getScheme()
-
getPassword
public String getPassword()
-
getUserInfo
public String getUserInfo()
-
getFragment
public String getFragment()
-
getAuthority
public String getAuthority()
-
getFileType
public FileType getFileType()
-
compareTo
public int compareTo(RedisURI that)
- 指定者:
compareTo在接口中Comparable<RedisURI>
-
toURL
public URL toURL() throws MalformedURLException
-
toASCIIString
public String toASCIIString()
-
-