Class Smb
java.lang.Object
org.springframework.integration.smb.dsl.Smb
The factory for SMB components.
- Since:
- 6.0
- Author:
- Gregory Bragg
-
Method Summary
Modifier and TypeMethodDescriptionstatic SmbInboundChannelAdapterSpec
inboundAdapter
(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbInboundChannelAdapterSpec
factory for an inbound channel adapter spec.static SmbInboundChannelAdapterSpec
inboundAdapter
(SessionFactory<jcifs.smb.SmbFile> sessionFactory, Comparator<File> receptionOrderComparator) ASmbInboundChannelAdapterSpec
factory for an inbound channel adapter spec.inboundStreamingAdapter
(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate) ASmbStreamingInboundChannelAdapterSpec
factory for an inbound channel adapter spec.inboundStreamingAdapter
(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, Comparator<jcifs.smb.SmbFile> receptionOrderComparator) ASmbStreamingInboundChannelAdapterSpec
factory for an inbound channel adapter spec.static SmbMessageHandlerSpec
outboundAdapter
(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbMessageHandlerSpec
factory for an outbound channel adapter spec.static SmbMessageHandlerSpec
outboundAdapter
(SessionFactory<jcifs.smb.SmbFile> sessionFactory, FileExistsMode fileExistsMode) ASmbMessageHandlerSpec
factory for an outbound channel adapter spec.static SmbMessageHandlerSpec
outboundAdapter
(SmbRemoteFileTemplate smbRemoteFileTemplate) ASmbMessageHandlerSpec
factory for an outbound channel adapter spec.static SmbMessageHandlerSpec
outboundAdapter
(SmbRemoteFileTemplate smbRemoteFileTemplate, FileExistsMode fileExistsMode) ASmbMessageHandlerSpec
factory for an outbound channel adapter spec.static SmbOutboundGatewaySpec
outboundGateway
(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command, String expression) Produce aSmbOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.static SmbOutboundGatewaySpec
outboundGateway
(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.static SmbOutboundGatewaySpec
outboundGateway
(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, String expression) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.static SmbOutboundGatewaySpec
outboundGateway
(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remoteFilePath.static SmbOutboundGatewaySpec
outboundGateway
(SessionFactory<jcifs.smb.SmbFile> sessionFactory, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) Produce aSmbOutboundGatewaySpec
based on theMessageSessionCallback
.
-
Method Details
-
inboundAdapter
public static SmbInboundChannelAdapterSpec inboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbInboundChannelAdapterSpec
factory for an inbound channel adapter spec.- Parameters:
sessionFactory
- the session factory.- Returns:
- the spec.
-
inboundAdapter
public static SmbInboundChannelAdapterSpec inboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory, Comparator<File> receptionOrderComparator) ASmbInboundChannelAdapterSpec
factory 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) ASmbStreamingInboundChannelAdapterSpec
factory 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, Comparator<jcifs.smb.SmbFile> receptionOrderComparator) ASmbStreamingInboundChannelAdapterSpec
factory 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) ASmbMessageHandlerSpec
factory 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) ASmbMessageHandlerSpec
factory for an outbound channel adapter spec.- Parameters:
sessionFactory
- the session factory.fileExistsMode
- the file exists mode.- Returns:
- the spec.
-
outboundAdapter
ASmbMessageHandlerSpec
factory for an outbound channel adapter spec.- Parameters:
smbRemoteFileTemplate
- the remote file template.- Returns:
- the spec.
-
outboundAdapter
public static SmbMessageHandlerSpec outboundAdapter(SmbRemoteFileTemplate smbRemoteFileTemplate, FileExistsMode fileExistsMode) ASmbMessageHandlerSpec
factory 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 aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for 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 aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for 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 aSmbOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
andexpression
for 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 aSmbOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
andexpression
for 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 aSmbOutboundGatewaySpec
based on theMessageSessionCallback
.- Parameters:
sessionFactory
- theSessionFactory
to connect to.messageSessionCallback
- theMessageSessionCallback
to perform SMB. operation(s) with theMessage
context.- Returns:
- the
SmbOutboundGatewaySpec
- See Also:
-