Class FtpResource

java.lang.Object
org.apache.camel.quarkus.component.ftp.it.FtpResource

@Path("/ftp") @ApplicationScoped public class FtpResource extends Object
  • Field Details

    • producerTemplate

      @Inject org.apache.camel.ProducerTemplate producerTemplate
    • consumerTemplate

      @Inject org.apache.camel.ConsumerTemplate consumerTemplate
  • Constructor Details

    • FtpResource

      public FtpResource()
  • Method Details

    • getFile

      @Path("/get/{fileName}") @GET @Produces("text/plain") public String getFile(@PathParam("fileName") String fileName)
    • createFile

      @Path("/create/{fileName}") @POST @Consumes("text/plain") public javax.ws.rs.core.Response createFile(@PathParam("fileName") String fileName, String fileContent) throws Exception
      Throws:
      Exception
    • deleteFile

      @Path("/delete/{fileName}") @DELETE public void deleteFile(@PathParam("fileName") String fileName)
    • moveToDoneFile

      @Path("/moveToDoneFile/{fileName}") @PUT public void moveToDoneFile(@PathParam("fileName") String fileName)