Package org.apache.commons.vfs2.provider
Class HostFileNameParser.Authority
- java.lang.Object
-
- org.apache.commons.vfs2.provider.HostFileNameParser.Authority
-
- Enclosing class:
- HostFileNameParser
protected static class HostFileNameParser.Authority extends java.lang.Object
Parsed authority info (scheme, hostname, username/password, port).
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAuthority()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHostName()Get the host name.java.lang.StringgetPassword()Get the user password.intgetPort()Get the port.java.lang.StringgetScheme()Get the connection schema.java.lang.StringgetUserName()Get the user name.voidsetHostName(java.lang.String hostName)Set the host name.voidsetPassword(java.lang.String password)Set the user password.voidsetPort(int port)Set the connection port.voidsetScheme(java.lang.String scheme)Set the connection schema.voidsetUserName(java.lang.String userName)Set the user name.
-
-
-
Constructor Detail
-
Authority
protected Authority()
-
-
Method Detail
-
getScheme
public java.lang.String getScheme()
Get the connection schema.- Returns:
- the connection scheme.
- Since:
- 2.0
-
setScheme
public void setScheme(java.lang.String scheme)
Set the connection schema.- Parameters:
scheme- the connection scheme.- Since:
- 2.0
-
getHostName
public java.lang.String getHostName()
Get the host name.- Returns:
- the host name.
- Since:
- 2.0
-
setHostName
public void setHostName(java.lang.String hostName)
Set the host name.- Parameters:
hostName- the host name.- Since:
- 2.0
-
getUserName
public java.lang.String getUserName()
Get the user name.- Returns:
- the user name or null.
- Since:
- 2.0
-
setUserName
public void setUserName(java.lang.String userName)
Set the user name.- Parameters:
userName- the user name.- Since:
- 2.0
-
getPassword
public java.lang.String getPassword()
Get the user password.- Returns:
- the password or null.
- Since:
- 2.0
-
setPassword
public void setPassword(java.lang.String password)
Set the user password.- Parameters:
password- the user password.- Since:
- 2.0
-
getPort
public int getPort()
Get the port.- Returns:
- the port or -1.
- Since:
- 2.0
-
setPort
public void setPort(int port)
Set the connection port.- Parameters:
port- the port number or -1.- Since:
- 2.0
-
-