Class SftpResource

java.lang.Object
org.apache.camel.quarkus.component.sftp.it.SftpResource

@Path("/sftp") @ApplicationScoped public class SftpResource extends Object
  • Field Details

    • producerTemplate

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

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

    • SftpResource

      public SftpResource()
  • 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)