Class FileResource
java.lang.Object
org.apache.camel.quarkus.component.file.it.FileResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsecreateFile(String folder, byte[] content, String charset, String fileName) getBatch()getFromMock(String mockId) pollEnrich(String body, String route) voidvoidstartRoute(String routeId) void
-
Field Details
-
CONSUME_BATCH
-
SORT_BY
-
SEPARATOR
-
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate -
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate -
context
@Inject org.apache.camel.CamelContext context
-
-
Constructor Details
-
FileResource
public FileResource()
-
-
Method Details
-
getFile
@Path("/get/{folder}/{name}") @GET @Produces("text/plain") public String getFile(@PathParam("folder") String folder, @PathParam("name") String name) throws Exception - Throws:
Exception
-
getBatch
@Path("/getBatch") @GET @Produces("application/json") public Map<String,Object> getBatch() throws Exception- Throws:
Exception
-
startRoute
@Path("/startRoute") @POST @Consumes("text/plain") public void startRoute(String routeId) throws Exception - Throws:
Exception
-
getFromMock
-
resetMock
-
createFile
@Path("/create/{folder}") @POST @Consumes("application/octet-stream") @Produces("text/plain") public jakarta.ws.rs.core.Response createFile(@PathParam("folder") String folder, byte[] content, @QueryParam("charset") String charset, @QueryParam("fileName") String fileName) throws Exception - Throws:
Exception
-
pollEnrich
@Path("/route/{route}") @POST @Consumes("text/plain") public String pollEnrich(String body, @PathParam("route") String route) throws Exception - Throws:
Exception
-
writeThenReadFileWithCharsetShouldSucceed
@Path("/writeThenReadFileWithCharsetShouldSucceed") @GET public void writeThenReadFileWithCharsetShouldSucceed() throws Exception- Throws:
Exception
-