Class SshResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.ssh.it.SshResource
-
@Path("/ssh") @ApplicationScoped public class SshResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.ProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description SshResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsereadFile(String fileName)javax.ws.rs.core.ResponsewriteToFile(String fileName, String content)
-
-
-
Method Detail
-
writeToFile
@POST @Path("/file/{fileName}") @Consumes("text/plain") public javax.ws.rs.core.Response writeToFile(@PathParam("fileName") String fileName, String content) throws URISyntaxException- Throws:
URISyntaxException
-
readFile
@GET @Path("/file/{fileName}") @Produces("text/plain") public javax.ws.rs.core.Response readFile(@PathParam("fileName") String fileName) throws URISyntaxException- Throws:
URISyntaxException
-
-