Class Smb
java.lang.Object
org.springframework.integration.smb.dsl.Smb
The factory for SMB components.
- Since:
 - 6.0
 - Author:
 - Gregory Bragg, Artem Bilan
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic SmbInboundChannelAdapterSpecinboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbInboundChannelAdapterSpecfactory for an inbound channel adapter spec.static SmbInboundChannelAdapterSpecinboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory, Comparator<File> receptionOrderComparator) ASmbInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate) ASmbStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, Comparator<jcifs.smb.SmbFile> receptionOrderComparator) ASmbStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.static SmbMessageHandlerSpecoutboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.static SmbMessageHandlerSpecoutboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory, FileExistsMode fileExistsMode) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.static SmbMessageHandlerSpecoutboundAdapter(SmbRemoteFileTemplate smbRemoteFileTemplate) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.static SmbMessageHandlerSpecoutboundAdapter(SmbRemoteFileTemplate smbRemoteFileTemplate, FileExistsMode fileExistsMode) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.static SmbOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command, String expression) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SmbOutboundGatewaySpecoutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SmbOutboundGatewaySpecoutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SmbOutboundGatewaySpecoutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SmbOutboundGatewaySpecoutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) Produce aSmbOutboundGatewaySpecbased on theMessageSessionCallback. 
- 
Method Details
- 
inboundAdapter
public static SmbInboundChannelAdapterSpec inboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
 sessionFactory- the session factory.- Returns:
 - the spec.
 
 - 
inboundAdapter
public static SmbInboundChannelAdapterSpec inboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory, @Nullable Comparator<File> receptionOrderComparator) ASmbInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
 sessionFactory- the session factory.receptionOrderComparator- the comparator.- Returns:
 - the spec.
 
 - 
inboundStreamingAdapter
public static SmbStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate) ASmbStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
 remoteFileTemplate- the remote file template.- Returns:
 - the spec.
 
 - 
inboundStreamingAdapter
public static SmbStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, @Nullable Comparator<jcifs.smb.SmbFile> receptionOrderComparator) ASmbStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
 remoteFileTemplate- the remote file template.receptionOrderComparator- the comparator.- Returns:
 - the spec.
 
 - 
outboundAdapter
public static SmbMessageHandlerSpec outboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
 sessionFactory- the session factory.- Returns:
 - the spec.
 
 - 
outboundAdapter
public static SmbMessageHandlerSpec outboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory, FileExistsMode fileExistsMode) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
 sessionFactory- the session factory.fileExistsMode- the file exists mode.- Returns:
 - the spec.
 
 - 
outboundAdapter
ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
 smbRemoteFileTemplate- the remote file template.- Returns:
 - the spec.
 
 - 
outboundAdapter
public static SmbMessageHandlerSpec outboundAdapter(SmbRemoteFileTemplate smbRemoteFileTemplate, FileExistsMode fileExistsMode) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
 smbRemoteFileTemplate- the remote file template.fileExistsMode- the file exists mode.- Returns:
 - the spec.
 
 - 
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
 sessionFactory- theSessionFactory.command- the command to perform on the SMB.expression- the remoteFilePath SpEL expression.- Returns:
 - the 
SmbOutboundGatewaySpec 
 - 
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
 sessionFactory- theSessionFactory.command- the command to perform on the SMB.expression- the remoteFilePath SpEL expression.- Returns:
 - the 
SmbOutboundGatewaySpec - See Also:
 
 - 
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
 remoteFileTemplate- theRemoteFileTemplate.command- the command to perform on the SMB.expression- the remoteFilePath SpEL expression.- Returns:
 - the 
SmbOutboundGatewaySpec - See Also:
 
 - 
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command, String expression) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
 remoteFileTemplate- theRemoteFileTemplate.command- the command to perform on the SMB.expression- the remoteFilePath SpEL expression.- Returns:
 - the 
SmbOutboundGatewaySpec - See Also:
 
 - 
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) Produce aSmbOutboundGatewaySpecbased on theMessageSessionCallback.- Parameters:
 sessionFactory- theSessionFactoryto connect to.messageSessionCallback- theMessageSessionCallbackto perform SMB. operation(s) with theMessagecontext.- Returns:
 - the 
SmbOutboundGatewaySpec - See Also:
 
 
 -