164장. IPFS 구성 요소

Camel 버전 2.23에서 사용 가능

ipfs: 구성 요소는 Interplanetary File System (IPFS) 에 대한 액세스를 제공합니다.

Maven 사용자는 이 구성 요소를 위해 다음 종속성을 pom.xml 에 추가해야 합니다.

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-ipfs</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

164.1. URI 형식

ipfs://cmd?options
<TODO><title>샘플</title>

이 샘플에서 IPFS에 파일을 추가하고, IPFS에서 파일을 가져오고 마지막으로 IPFS 파일의 콘텐츠에 액세스합니다.

from("direct:start").to("ipfs:add")
from("direct:start").to("ipfs:get?outdir=target")
from("direct:start").to("ipfs:cat");
</TODO>