Package org.apache.commons.vfs2.provider
Class HostFileNameParser.Authority
java.lang.Object
org.apache.commons.vfs2.provider.HostFileNameParser.Authority
- Enclosing class:
- HostFileNameParser
Parsed authority info (scheme, hostname, username/password, port).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the host name.Get the user password.int
getPort()
Get the port.Get the connection schema.Get the user name.void
setHostName
(String hostName) Set the host name.void
setPassword
(String password) Set the user password.void
setPort
(int port) Set the connection port.void
Set the connection schema.void
setUserName
(String userName) Set the user name.
-
Constructor Details
-
Authority
protected Authority()
-
-
Method Details
-
getScheme
Get the connection schema.- Returns:
- the connection scheme.
- Since:
- 2.0
-
setScheme
Set the connection schema.- Parameters:
scheme
- the connection scheme.- Since:
- 2.0
-
getHostName
Get the host name.- Returns:
- the host name.
- Since:
- 2.0
-
setHostName
Set the host name.- Parameters:
hostName
- the host name.- Since:
- 2.0
-
getUserName
Get the user name.- Returns:
- the user name or null.
- Since:
- 2.0
-
setUserName
Set the user name.- Parameters:
userName
- the user name.- Since:
- 2.0
-
getPassword
Get the user password.- Returns:
- the password or null.
- Since:
- 2.0
-
setPassword
Set the user password.- Parameters:
password
- the user password.- Since:
- 2.0
-
getPort
Get the port.- Returns:
- the port or -1.
- Since:
- 2.0
-
setPort
Set the connection port.- Parameters:
port
- the port number or -1.- Since:
- 2.0
-