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.intgetPort()Get the port.Get the connection schema.Get the user name.voidsetHostName(String hostName) Set the host name.voidsetPassword(String password) Set the user password.voidsetPort(int port) Set the connection port.voidSet the connection schema.voidsetUserName(String userName) Set the user name.
-
Constructor Details
-
Authority
protected Authority()
-
-
Method Details
-
getScheme
-
setScheme
-
getHostName
-
setHostName
Set the host name.- Parameters:
hostName- the host name.- Since:
- 2.0
-
getUserName
-
setUserName
Set the user name.- Parameters:
userName- the user name.- Since:
- 2.0
-
getPassword
-
setPassword
Set the user password.- Parameters:
password- the user password.- Since:
- 2.0
-
getPort
-
setPort
Set the connection port.- Parameters:
port- the port number or -1.- Since:
- 2.0
-