@MediaType(value="*/*",
strict=false)
@DisplayName(value="On New or Updated File")
@Summary(value="Triggers when a new file is created in a directory")
@Alias(value="listener")
public class FtpDirectoryListener
extends org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,FtpFileAttributes>
The key part of this functionality is how to determine that a file is actually new. There're three strategies for that:
A matcher can also be used for additional filtering of files.
| Constructor and Description |
|---|
FtpDirectoryListener() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
onError(PostActionGroup postAction,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext ctx) |
void |
onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FtpFileAttributes> result,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
void |
onSuccess(PostActionGroup postAction,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext ctx) |
void |
onTerminate(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext ctx) |
void |
poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,FtpFileAttributes> pollContext) |
protected void doStart()
doStart in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,FtpFileAttributes>protected void doStop()
doStop in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,FtpFileAttributes>@OnSuccess
public void onSuccess(@ParameterGroup(name="Post processing action")
PostActionGroup postAction,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext ctx)
@OnError
public void onError(@ParameterGroup(name="Post processing action")
PostActionGroup postAction,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext ctx)
@OnTerminate public void onTerminate(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext ctx)
public void poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,FtpFileAttributes> pollContext)
poll in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,FtpFileAttributes>public void onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FtpFileAttributes> result, org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext)
onRejectedItem in class org.mule.runtime.extension.api.runtime.source.PollingSource<InputStream,FtpFileAttributes>Copyright © 2018 MuleSoft, Inc.. All rights reserved.