Class HostFileNameParser.Authority
java.lang.Object
org.apache.commons.vfs2.provider.HostFileNameParser.Authority
- Enclosing class:
HostFileNameParser
Parsed authority info (scheme, hostname, username/password, port).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the host name.Gets the user password.intgetPort()Gets the port.Get 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.
-
Field Details
-
hostName
-
password
-
port
private int port -
scheme
-
userName
-
-
Constructor Details
-
Authority
protected Authority()
-
-
Method Details
-
getHostName
-
getPassword
-
getPort
public int getPort()Gets the port.- Returns:
- the port or -1.
- Since:
- 2.0
-
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
public void setPort(int port) 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
-