Class SmbConfig
java.lang.Object
org.springframework.integration.smb.session.SmbConfig
- Direct Known Subclasses:
- SmbSessionFactory
Data holder class for an 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, Jelle Smits
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetHost()intgetPort()jcifs.DialectVersionGets the desired maximum SMB version value for what the Windows server will allow during protocol transport negotiation.jcifs.DialectVersionGets the desired minimum SMB version value for what the Windows server will allow during protocol transport negotiation.final StringgetUrl()final StringgetUrl(boolean _includePassword) final StringrawUrl()Return the url string for the share connection without encoding.final StringrawUrl(boolean _includePassword) Return the url string for the share connection without encoding the host and path.final voidfinal voidfinal voidsetPassword(String _password) final voidsetPort(int _port) final voidsetShareAndDir(String _shareAndDir) voidsetSmbMaxVersion(jcifs.DialectVersion _smbMaxVersion) Sets the desired maximum SMB version value for what the Windows server will allow during protocol transport negotiation.voidsetSmbMinVersion(jcifs.DialectVersion _smbMinVersion) Sets the desired minimum SMB version value for what the Windows server will allow during protocol transport negotiation.final voidsetUsername(String _username) toString()final SmbConfigvalidate()Validates the object.
- 
Constructor Details- 
SmbConfigpublic SmbConfig()
- 
SmbConfig
 
- 
- 
Method Details- 
setHost
- 
getHost
- 
setPortpublic final void setPort(int _port) 
- 
getPortpublic int getPort()
- 
setDomain
- 
getDomain
- 
setUsername
- 
getUsername
- 
setPassword
- 
getPassword
- 
getSmbMinVersionpublic 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
 
- 
setSmbMinVersionpublic 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
 
- 
getSmbMaxVersionpublic 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
 
- 
setSmbMaxVersionpublic 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
 
- 
validateValidates the object. Throws run-time exception if found to be invalid.- Returns:
- the object
 
- 
getUrl
- 
getUrl
- 
rawUrl
- 
rawUrlReturn the url string for the share connection without encoding the host and path. ThedomainUserPassis encoded, asURLrequires them to be encoded otherwise its parsing fails. Used in theSmbShareconstructor delegation.- Parameters:
- _includePassword- whether password has to be masked in credentials of URL.
- Returns:
- the url string for the share connection without encoding.
- Since:
- 6.3.8
 
- 
toString
 
-