Class Smb
java.lang.Object
org.springframework.integration.smb.dsl.Smb
The factory for SMB components.
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic SmbInboundChannelAdapterSpecinboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbInboundChannelAdapterSpecfactory for an inbound channel adapter spec.static SmbInboundChannelAdapterSpecinboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, Comparator<File> receptionOrderComparator) ASmbInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate) ASmbStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.inboundStreamingAdapter(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, Comparator<jcifs.smb.SmbFile> receptionOrderComparator) ASmbStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.static SmbMessageHandlerSpecoutboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.static SmbMessageHandlerSpecoutboundAdapter(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.support.FileExistsMode fileExistsMode) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.static SmbMessageHandlerSpecoutboundAdapter(SmbRemoteFileTemplate smbRemoteFileTemplate) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.static SmbMessageHandlerSpecoutboundAdapter(SmbRemoteFileTemplate smbRemoteFileTemplate, org.springframework.integration.file.support.FileExistsMode fileExistsMode) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.static SmbOutboundGatewaySpecoutboundGateway(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command, String expression) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SmbOutboundGatewaySpecoutboundGateway(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SmbOutboundGatewaySpecoutboundGateway(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SmbOutboundGatewaySpecoutboundGateway(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.static SmbOutboundGatewaySpecoutboundGateway(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.remote.MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) Produce aSmbOutboundGatewaySpecbased on theMessageSessionCallback.
-
Method Details
-
inboundAdapter
public static SmbInboundChannelAdapterSpec inboundAdapter(org.springframework.integration.file.remote.session.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(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, 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(org.springframework.integration.file.remote.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(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, 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(org.springframework.integration.file.remote.session.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(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.support.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, org.springframework.integration.file.support.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(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.remote.gateway.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(org.springframework.integration.file.remote.session.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:
-
RemoteFileTemplate
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, org.springframework.integration.file.remote.gateway.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:
-
RemoteFileTemplate
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.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:
-
RemoteFileTemplate
-
outboundGateway
public static SmbOutboundGatewaySpec outboundGateway(org.springframework.integration.file.remote.session.SessionFactory<jcifs.smb.SmbFile> sessionFactory, org.springframework.integration.file.remote.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:
-
MessageSessionCallback
-