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 SummaryConstructors
- 
Method SummaryModifier 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- 
Authoritypublic Authority()Constructs a new instance.
 
- 
- 
Method Details- 
getHostNameGets the host name.- Returns:
- the host name.
- Since:
- 2.0
 
- 
getPasswordGets the user password.- Returns:
- the password or null.
- Since:
- 2.0
 
- 
getPortGets the port.- Returns:
- the port or -1.
- Since:
- 2.0
 
- 
getSchemeGets the connection schema.- Returns:
- the connection scheme.
- Since:
- 2.0
 
- 
getUserNameGets the user name.- Returns:
- the user name or null.
- Since:
- 2.0
 
- 
setHostNameSets the host name.- Parameters:
- hostName- the host name.
- Since:
- 2.0
 
- 
setPasswordSets the user password.- Parameters:
- password- the user password.
- Since:
- 2.0
 
- 
setPortSets the connection port.- Parameters:
- port- the port number or -1.
- Since:
- 2.0
 
- 
setSchemeSets the connection schema.- Parameters:
- scheme- the connection scheme.
- Since:
- 2.0
 
- 
setUserNameSets the user name.- Parameters:
- userName- the user name.
- Since:
- 2.0
 
 
-