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 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) Produce aSmbOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
.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) Produce aSmbOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
.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) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
.static SmbOutboundGatewaySpec
outboundGateway
(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, String expression) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remote path.static SmbOutboundGatewaySpec
outboundGateway
(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
.static SmbOutboundGatewaySpec
outboundGateway
(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remote path.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, @Nullable 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, @Nullable 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) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
.- Parameters:
sessionFactory
- theSessionFactory
.command
- the command to perform on the SMB.- Returns:
- the
SmbOutboundGatewaySpec
- Since:
- 6.4
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, @Nullable String expression) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remote path.- Parameters:
sessionFactory
- theSessionFactory
.command
- the command to perform on the SMB.expression
- the remote path SpEL expression.- Returns:
- the
SmbOutboundGatewaySpec
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
.- Parameters:
sessionFactory
- theSessionFactory
.command
- the command to perform on the SMB.- Returns:
- the
SmbOutboundGatewaySpec
- Since:
- 6.4
- See Also:
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, @Nullable String expression) Produce aSmbOutboundGatewaySpec
based on theSessionFactory
,AbstractRemoteFileOutboundGateway.Command
andexpression
for the remote path.- Parameters:
sessionFactory
- theSessionFactory
.command
- the command to perform on the SMB.expression
- the remote path SpEL expression.- Returns:
- the
SmbOutboundGatewaySpec
- See Also:
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command) Produce aSmbOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
.- Parameters:
remoteFileTemplate
- theRemoteFileTemplate
.command
- the command to perform on the SMB.- Returns:
- the
SmbOutboundGatewaySpec
- Since:
- 6.4
- See Also:
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, @Nullable 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) Produce aSmbOutboundGatewaySpec
based on theRemoteFileTemplate
,AbstractRemoteFileOutboundGateway.Command
.- Parameters:
remoteFileTemplate
- theRemoteFileTemplate
.command
- the command to perform on the SMB.- Returns:
- the
SmbOutboundGatewaySpec
- Since:
- 6.4
- See Also:
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command, @Nullable 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:
-