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.intgetPort()Gets the port.Gets the connection schema.Gets the user name.voidsetHostName(String hostName) Sets the host name.voidsetPassword(String password) Sets the user password.voidsetPort(int port) Sets the connection port.voidSets the connection schema.voidsetUserName(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
-