Class RedisURI
- java.lang.Object
-
- com.moilioncircle.redis.replicator.RedisURI
-
- All Implemented Interfaces:
Serializable,Comparable<RedisURI>
public final class RedisURI extends Object implements Comparable<RedisURI>, Serializable
- Since:
- 2.4.0
- Author:
- Leon Chen
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RedisURI that)booleanequals(Object o)StringgetAuthority()FileTypegetFileType()StringgetFragment()StringgetHost()Map<String,String>getParameters()StringgetPassword()StringgetPath()intgetPort()StringgetQuery()StringgetScheme()StringgetUser()StringgetUserInfo()inthashCode()booleanisSsl()StringtoASCIIString()StringtoString()URLtoURL()
-
-
-
Constructor Detail
-
RedisURI
public RedisURI(String uri) throws URISyntaxException
- Throws:
URISyntaxException
-
RedisURI
public RedisURI(URI uri) throws URISyntaxException
- Parameters:
uri- uri- Throws:
URISyntaxException- illegal uri- Since:
- 3.0.0
-
RedisURI
public RedisURI(File file) throws MalformedURLException, URISyntaxException
- Parameters:
file- file- Throws:
URISyntaxException- illegal fileMalformedURLException- illegal file- Since:
- 3.0.0
-
-
Method Detail
-
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)
- Specified by:
compareToin interfaceComparable<RedisURI>
-
toURL
public URL toURL() throws MalformedURLException
- Throws:
MalformedURLException
-
toASCIIString
public String toASCIIString()
-
-