Class SmbConfig
java.lang.Object
org.springframework.integration.smb.session.SmbConfig
- Direct Known Subclasses:
SmbSessionFactory
Data holder class for a SMB share configuration.
SmbFile URLs syntax:
smb://[[[domain;]username[:password]@]server[:port]/[[share/[dir/]file]]][?[param=value[param2=value2[...]]]
- Since:
- 6.0
- Author:
- Markus Spann, Prafull Kumar Soni, Artem Bilan, Gregory Bragg
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHost()
int
getPort()
jcifs.DialectVersion
Gets the desired maximum SMB version value for what the Windows server will allow during protocol transport negotiation.jcifs.DialectVersion
Gets the desired minimum SMB version value for what the Windows server will allow during protocol transport negotiation.final String
getUrl()
final String
getUrl
(boolean _includePassword) void
void
void
setPassword
(String _password) void
setPort
(int _port) void
setShareAndDir
(String _shareAndDir) void
setSmbMaxVersion
(jcifs.DialectVersion _smbMaxVersion) Sets the desired maximum SMB version value for what the Windows server will allow during protocol transport negotiation.void
setSmbMinVersion
(jcifs.DialectVersion _smbMinVersion) Sets the desired minimum SMB version value for what the Windows server will allow during protocol transport negotiation.void
setUsername
(String _username) toString()
final SmbConfig
validate()
Validates the object.
-
Constructor Details
-
SmbConfig
public SmbConfig() -
SmbConfig
-
-
Method Details
-
setHost
-
getHost
-
setPort
public void setPort(int _port) -
getPort
public int getPort() -
setDomain
-
getDomain
-
setUsername
-
getUsername
-
setPassword
-
getPassword
-
getSmbMinVersion
public jcifs.DialectVersion getSmbMinVersion()Gets the desired minimum SMB version value for what the Windows server will allow during protocol transport negotiation.- Returns:
- one of SMB1, SMB202, SMB210, SMB300, SMB302 or SMB311
-
setSmbMinVersion
public void setSmbMinVersion(jcifs.DialectVersion _smbMinVersion) Sets the desired minimum SMB version value for what the Windows server will allow during protocol transport negotiation.- Parameters:
_smbMinVersion
- one of SMB1, SMB202, SMB210, SMB300, SMB302 or SMB311
-
getSmbMaxVersion
public jcifs.DialectVersion getSmbMaxVersion()Gets the desired maximum SMB version value for what the Windows server will allow during protocol transport negotiation.- Returns:
- one of SMB1, SMB202, SMB210, SMB300, SMB302 or SMB311
-
setSmbMaxVersion
public void setSmbMaxVersion(jcifs.DialectVersion _smbMaxVersion) Sets the desired maximum SMB version value for what the Windows server will allow during protocol transport negotiation.- Parameters:
_smbMaxVersion
- one of SMB1, SMB202, SMB210, SMB300, SMB302 or SMB311
-
validate
Validates the object. Throws run-time exception if found to be invalid.- Returns:
- the object
-
getUrl
-
getUrl
-
toString
-