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 TypeMethodDescriptionGets the host name.Gets the user password.int
getPort()
Gets the port.Gets the connection schema.Gets the user name.void
setHostName
(String hostName) Sets the host name.void
setPassword
(String password) Sets the user password.void
setPort
(int port) Sets the connection port.void
Sets the connection schema.void
setUserName
(String userName) Sets the user name.
-
Constructor Details
-
Authority
public Authority()Constructs a new instance.
-
-
Method Details
-
getHostName
Gets the host name.- Returns:
- the host name.
- Since:
- 2.0
-
getPassword
Gets the user password.- Returns:
- the password or null.
- Since:
- 2.0
-
getPort
Gets the port.- Returns:
- the port or -1.
- Since:
- 2.0
-
getScheme
Gets the connection schema.- Returns:
- the connection scheme.
- Since:
- 2.0
-
getUserName
Gets the user name.- Returns:
- the user name or null.
- Since:
- 2.0
-
setHostName
Sets the host name.- Parameters:
hostName
- the host name.- Since:
- 2.0
-
setPassword
Sets the user password.- Parameters:
password
- the user password.- Since:
- 2.0
-
setPort
Sets the connection port.- Parameters:
port
- the port number or -1.- Since:
- 2.0
-
setScheme
Sets the connection schema.- Parameters:
scheme
- the connection scheme.- Since:
- 2.0
-
setUserName
Sets the user name.- Parameters:
userName
- the user name.- Since:
- 2.0
-