Class JschResource


  • @Path("/jsch")
    public class JschResource
    extends Object
    • Field Detail

      • port

        int port
      • fluentProducerTemplate

        @Inject
        org.apache.camel.FluentProducerTemplate fluentProducerTemplate
      • consumerTemplate

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

      • JschResource

        public JschResource()
    • Method Detail

      • copyFile

        @Path("/file/copy")
        @POST
        public javax.ws.rs.core.Response copyFile​(@QueryParam("message")
                                                  String message,
                                                  String path)
                                           throws Exception
        Throws:
        Exception
      • getFile

        @Path("/file/get")
        @Produces("text/plain")
        @GET
        public String getFile​(@QueryParam("path")
                              String path)
                       throws Exception
        Throws:
        Exception