クラス SmbOutboundGateway
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.handler.AbstractMessageProducingHandler
org.springframework.integration.handler.AbstractReplyProducingMessageHandler
org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>
org.springframework.integration.smb.outbound.SmbOutboundGateway
- 実装済みのインターフェース一覧:
org.reactivestreams.Subscriber<Message<?>>、Aware、BeanClassLoaderAware、BeanFactoryAware、BeanNameAware、DisposableBean、InitializingBean、ApplicationContextAware、Ordered、ComponentSourceAware、ExpressionCapable、Orderable、MessageProducer、HeaderPropagationAware、IntegrationPattern、NamedComponent、IntegrationManagement、TrackableComponent、MessageHandler、reactor.core.CoreSubscriber<Message<?>>
SMB 経由で リモートファイル操作を実行するための送信 ゲートウェイ。
- 導入:
- 6.0
- 作成者:
- Gregory Bragg, Artem Bilan
ネストされたクラスの概要
クラス org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway から継承されたネストクラス / インターフェース
AbstractRemoteFileOutboundGateway.Command, AbstractRemoteFileOutboundGateway.Optionクラス org.springframework.integration.handler.AbstractReplyProducingMessageHandler から継承されたネストクラス / インターフェース
AbstractReplyProducingMessageHandler.RequestHandlerインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたフィールド
messagingTemplateクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクター概要
コンストラクターコンストラクター説明SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, StringSE command) 提供されたリモートファイルテンプレートとコマンド('ls'、'nlst'、'put' または 'mput' )を使用してインスタンスを構築します。SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, StringSE command, StringSE expression) 提供された リモートファイルテンプレート、コマンド ('ls'、'get' など)、リモートパスを決定する式を使用してインスタンスを構築します。SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) 提供されたリモートファイルテンプレートと、セッションで操作を実行するためのコールバックを使用してインスタンスを構築します。SmbOutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, StringSE command) 提供されたセッションファクトリとコマンド('ls'、'nlst'、'put' または 'mput' )を使用してインスタンスを構築します。SmbOutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, StringSE command, StringSE expression) 提供されたセッションファクトリ、コマンド ( "ls"、"get" など)、リモートパスを決定する式を使用してインスタンスを構築します。SmbOutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) 提供されたセッションファクトリとセッションで操作を実行するためのコールバックを使用してインスタンスを構築します。方法の概要
修飾子と型メソッド説明protected ListSE<AbstractFileInfo<jcifs.smb.SmbFile>>asFileInfoList(CollectionSE<jcifs.smb.SmbFile> files) protected jcifs.smb.SmbFileenhanceNameWithSubDirectory(jcifs.smb.SmbFile file, StringSE directory) サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。protected StringSEgetFilename(jcifs.smb.SmbFile file) protected StringSEgetFilename(AbstractFileInfo<jcifs.smb.SmbFile> file) protected StringSEgetFullFileName(StringSE remoteDirectory, jcifs.smb.SmbFile smbFile) デフォルトでは、このメソッドは リモートファイル名を使用して リモートディレクトリにアクセスし、完全な リモートファイルパスを構築します。protected longgetModified(jcifs.smb.SmbFile file) protected booleanisDirectory(jcifs.smb.SmbFile file) protected booleanisLink(jcifs.smb.SmbFile file) 現在、シンボリックリンクは JCIFS v2.x.x 依存ライブラリではサポートされていないため、このメソッドは常に false を返します。クラス org.springframework.integration.file.remote.gateway.AbstractRemoteFileOutboundGateway から継承されたメソッド
assertRemoteFileTemplateMutability, doChmod, doInit, filterFile, filterFiles, filterMputFiles, get, getRemoteFilename, getRemoteFileTemplate, handleRequestMessage, isChmodCapable, ls, mGet, mPut, mv, nlst, purgeDots, purgeLinks, put, remoteFileTemplateExplicitlySet, rm, setAutoCreateDirectory, setAutoCreateLocalDirectory, setCharset, setChmod, setChmodOctal, setFileExistsMode, setFileExistsModeExpression, setFileExistsModeExpressionString, setFileNameExpression, setFileNameGenerator, setFilter, setLocalDirectory, setLocalDirectoryExpression, setLocalDirectoryExpressionString, setLocalFilenameGeneratorExpression, setLocalFilenameGeneratorExpressionString, setMputFilter, setOption, setOptions, setRemoteDirectoryExpression, setRemoteFileSeparator, setRenameExpression, setRenameExpressionString, setTemporaryFileSuffix, setTemporaryRemoteDirectoryExpression, setUseTemporaryFileNameクラス org.springframework.integration.handler.AbstractReplyProducingMessageHandler から継承されたメソッド
doInvokeAdvisedRequestHandler, getBeanClassLoader, getIntegrationPatternType, getRequiresReply, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setRequiresReplyクラス org.springframework.integration.handler.AbstractMessageProducingHandler から継承されたメソッド
addNotPropagatedHeaders, createOutputMessage, getNotPropagatedHeaders, getOutputChannel, isAsync, messageBuilderForReply, produceOutput, resolveErrorChannel, sendErrorMessage, sendOutput, sendOutputs, setAsync, setNotPropagatedHeaders, setOutputChannel, setOutputChannelName, setSendTimeout, setupMessageProcessor, shouldCopyRequestHeaders, shouldSplitOutput, updateNotPropagatedHeadersクラス org.springframework.integration.handler.AbstractMessageHandler から継承されたメソッド
handleMessage, onComplete, onError, onNext, onSubscribe, setObservationConventionクラス org.springframework.integration.handler.MessageHandlerSupport から継承されたメソッド
buildSendTimer, destroy, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース reactor.core.CoreSubscriber から継承されたメソッド
currentContextインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getThisAsインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
SmbOutboundGateway
public SmbOutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) 提供されたセッションファクトリとセッションで操作を実行するためのコールバックを使用してインスタンスを構築します。- パラメーター:
sessionFactory- セッションファクトリ。messageSessionCallback- コールバック。
SmbOutboundGateway
public SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, MessageSessionCallback<jcifs.smb.SmbFile, ?> messageSessionCallback) 提供されたリモートファイルテンプレートと、セッションで操作を実行するためのコールバックを使用してインスタンスを構築します。- パラメーター:
remoteFileTemplate- リモートファイルテンプレート。messageSessionCallback- コールバック。
SmbOutboundGateway
public SmbOutboundGateway(SessionFactory<jcifs.smb.SmbFile> sessionFactory, StringSE command, @Nullable StringSE expression) 提供されたセッションファクトリ、コマンド ( "ls"、"get" など)、リモートパスを決定する式を使用してインスタンスを構築します。- パラメーター:
sessionFactory- セッションファクトリ。command- コマンド。expression- リモートパス式。
SmbOutboundGateway
public SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, StringSE command, @Nullable StringSE expression) 提供された リモートファイルテンプレート、コマンド ('ls'、'get' など)、リモートパスを決定する式を使用してインスタンスを構築します。- パラメーター:
remoteFileTemplate- リモートファイルテンプレート。command- コマンド。expression- リモートパス式。
SmbOutboundGateway
提供されたセッションファクトリとコマンド('ls'、'nlst'、'put' または 'mput' )を使用してインスタンスを構築します。remoteDirectory式は、SMB クライアントからworkingDirectoryを使用することを想定したnullです。- パラメーター:
sessionFactory- セッションファクトリ。command- コマンド。
SmbOutboundGateway
public SmbOutboundGateway(RemoteFileTemplate<jcifs.smb.SmbFile> remoteFileTemplate, StringSE command) 提供されたリモートファイルテンプレートとコマンド('ls'、'nlst'、'put' または 'mput' )を使用してインスタンスを構築します。remoteDirectory式は、SMB クライアントからworkingDirectoryを使用することを想定したnullです。- パラメーター:
remoteFileTemplate- リモートファイルテンプレート。command- コマンド。
方法の詳細
getComponentType
クラスからコピーされた説明:IntegrationObjectSupportサブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponent内のgetComponentType - オーバーライド:
- クラス
MessageHandlerSupportのgetComponentType
isDirectory
protected boolean isDirectory(jcifs.smb.SmbFile file) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>のisDirectory
isLink
protected boolean isLink(jcifs.smb.SmbFile file) 現在、シンボリックリンクは JCIFS v2.x.x 依存ライブラリではサポートされていないため、このメソッドは常に false を返します。- 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>のisLink - 戻り値:
- false
getFilename
- 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>のgetFilename
getFilename
- 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>のgetFilename
getModified
protected long getModified(jcifs.smb.SmbFile file) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>のgetModified
asFileInfoList
protected ListSE<AbstractFileInfo<jcifs.smb.SmbFile>> asFileInfoList(CollectionSE<jcifs.smb.SmbFile> files) - 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>のasFileInfoList
enhanceNameWithSubDirectory
- 次で指定:
- クラス
AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>のenhanceNameWithSubDirectory
getFullFileName
クラスからコピーされた説明:AbstractRemoteFileOutboundGatewayデフォルトでは、このメソッドは リモートファイル名を使用して リモートディレクトリにアクセスし、完全な リモートファイルパスを構築します。リモートファイルプロトコル固有の実装は、他のアプローチのためにこのメソッドをオーバーライドする場合があります。- オーバーライド:
- クラス
AbstractRemoteFileOutboundGateway<jcifs.smb.SmbFile>のgetFullFileName - パラメーター:
remoteDirectory- リモートファイルが属するディレクトリ。smbFile- リモートファイルに名前を付け、指定された リモートディレクトリに従ってパスを調整します。- 戻り値:
- リモートファイルのフルパス