Talend 中的组件,用于将 returns 代码不是 200 的文件上传到服务器

Component in Talend to upload a file to server that returns code other than 200

在 Talend Data Integration 中,我需要将文件(multipart/form-data)上传到 http 服务器。服务器响应 returns 除 200 OK 之外的 http 代码 - 例如 201 Created, 202 Accepted.

我尝试使用 tFileFetch,但此组件只接受代码为 200 的响应。

Talend 中是否有任何组件在文件上传期间可以处理 200 以外的 http 状态代码?

我通过编写自定义组件解决了我的问题。我从 tFileFetch 复制源代码,然后修改它以满足我的要求。

我按照教程找到了:http://www.talendbyexample.com/talend-custom-component-writing-overview.html