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
-
getPassword
-
getPort
-
getScheme
-
getUserName
-
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
-
setUserName
Sets the user name.- Parameters:
userName
- the user name.- Since:
- 2.0
-