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 SummaryModifier 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) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Command.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) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Command.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) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Command.static SmbOutboundGatewaySpecoutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.static SmbOutboundGatewaySpecoutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Command.static SmbOutboundGatewaySpecoutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.static SmbOutboundGatewaySpecoutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) Produce aSmbOutboundGatewaySpecbased on theMessageSessionCallback.
- 
Method Details- 
inboundAdapterpublic static SmbInboundChannelAdapterSpec inboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
- sessionFactory- the session factory.
- Returns:
- the spec.
 
- 
inboundAdapterpublic 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.
 
- 
inboundStreamingAdapterpublic static SmbStreamingInboundChannelAdapterSpec inboundStreamingAdapter(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate) ASmbStreamingInboundChannelAdapterSpecfactory for an inbound channel adapter spec.- Parameters:
- remoteFileTemplate- the remote file template.
- Returns:
- the spec.
 
- 
inboundStreamingAdapterpublic 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.
 
- 
outboundAdapterpublic static SmbMessageHandlerSpec outboundAdapter(SessionFactory<jcifs.smb.SmbFile> sessionFactory) ASmbMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
- sessionFactory- the session factory.
- Returns:
- the spec.
 
- 
outboundAdapterpublic 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.
 
- 
outboundAdapterASmbMessageHandlerSpecfactory for an outbound channel adapter spec.- Parameters:
- smbRemoteFileTemplate- the remote file template.
- Returns:
- the spec.
 
- 
outboundAdapterpublic 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.
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Command.- Parameters:
- sessionFactory- the- SessionFactory.
- command- the command to perform on the SMB.
- Returns:
- the SmbOutboundGatewaySpec
- Since:
- 6.4
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, AbstractRemoteFileOutboundGateway.Command command, @Nullable String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.- Parameters:
- sessionFactory- the- SessionFactory.
- command- the command to perform on the SMB.
- expression- the remote path SpEL expression.
- Returns:
- the SmbOutboundGatewaySpec
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Command.- Parameters:
- sessionFactory- the- SessionFactory.
- command- the command to perform on the SMB.
- Returns:
- the SmbOutboundGatewaySpec
- Since:
- 6.4
- See Also:
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, String command, @Nullable String expression) Produce aSmbOutboundGatewaySpecbased on theSessionFactory,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remote path.- Parameters:
- sessionFactory- the- SessionFactory.
- command- the command to perform on the SMB.
- expression- the remote path SpEL expression.
- Returns:
- the SmbOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Command.- Parameters:
- remoteFileTemplate- the- RemoteFileTemplate.
- command- the command to perform on the SMB.
- Returns:
- the SmbOutboundGatewaySpec
- Since:
- 6.4
- See Also:
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, AbstractRemoteFileOutboundGateway.Command command, @Nullable String expression) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
- remoteFileTemplate- the- RemoteFileTemplate.
- command- the command to perform on the SMB.
- expression- the remoteFilePath SpEL expression.
- Returns:
- the SmbOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Command.- Parameters:
- remoteFileTemplate- the- RemoteFileTemplate.
- command- the command to perform on the SMB.
- Returns:
- the SmbOutboundGatewaySpec
- Since:
- 6.4
- See Also:
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, String command, @Nullable String expression) Produce aSmbOutboundGatewaySpecbased on theRemoteFileTemplate,AbstractRemoteFileOutboundGateway.Commandandexpressionfor the remoteFilePath.- Parameters:
- remoteFileTemplate- the- RemoteFileTemplate.
- command- the command to perform on the SMB.
- expression- the remoteFilePath SpEL expression.
- Returns:
- the SmbOutboundGatewaySpec
- See Also:
 
- 
outboundGatewaypublic static SmbOutboundGatewaySpec outboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) Produce aSmbOutboundGatewaySpecbased on theMessageSessionCallback.- Parameters:
- sessionFactory- the- SessionFactoryto connect to.
- messageSessionCallback- the- MessageSessionCallbackto perform SMB. operation(s) with the- Messagecontext.
- Returns:
- the SmbOutboundGatewaySpec
- See Also:
 
 
-