Class CamelResource
- java.lang.Object
-
- org.apache.camel.quarkus.component.mail.CamelResource
-
@Path("/mail") @ApplicationScoped public class CamelResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.camel.CamelContextcamelContext(package private) List<Map<String,Object>>mailReceivedMessages(package private) org.apache.camel.ProducerTemplateproducerTemplate
-
Constructor Summary
Constructors Constructor Description CamelResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()StringcontrolRoute(String routeId, String operation)List<Map<String,Object>>getReceived()List<Map<String,Object>>getReceivedAsString()StringmimeMultipart(String fileName, String fileContent, String body)StringmimeMultipartUnmarshalMarshal(String body)voidsendMail(String subject, String from, String to, Boolean secured, String body)voidsendMailWithAttachment(String fileName, String subject, String from, String to, String body)List<String>sort(List<String> messages)voidstopConsumers()
-
-
-
Method Detail
-
sendMail
@Path("/send") @POST @Consumes("text/plain") public void sendMail(@QueryParam("subject") String subject, @QueryParam("from") String from, @QueryParam("to") String to, @QueryParam("secured") Boolean secured, String body)
-
sendMailWithAttachment
@Path("/send/attachment/{fileName}") @POST @Consumes("text/plain") public void sendMailWithAttachment(@PathParam("fileName") String fileName, @QueryParam("subject") String subject, @QueryParam("from") String from, @QueryParam("to") String to, String body)
-
mimeMultipartUnmarshalMarshal
@Path("/mimeMultipartUnmarshalMarshal") @POST @Consumes("text/plain") @Produces("text/plain") public String mimeMultipartUnmarshalMarshal(String body)
-
mimeMultipart
@Path("/mimeMultipartMarshal/{fileName}/{fileContent}") @POST @Consumes("text/plain") @Produces("text/plain") public String mimeMultipart(@PathParam("fileName") String fileName, @PathParam("fileContent") String fileContent, String body)
-
getReceived
@Path("/getReceived") @GET @Produces("application/json") public List<Map<String,Object>> getReceived()
-
getReceivedAsString
@Path("/getReceivedAsString") @GET @Produces("application/json") public List<Map<String,Object>> getReceivedAsString() throws javax.mail.MessagingException, IOException- Throws:
javax.mail.MessagingExceptionIOException
-
clear
@Path("/clear") @GET public void clear()
-
controlRoute
@GET @Path("/route/{routeId}/{operation}") @Produces("text/plain") public String controlRoute(@PathParam("routeId") String routeId, @PathParam("operation") String operation) throws Exception- Throws:
Exception
-
stopConsumers
@GET @Path("/stopConsumers") @Produces("text/plain") public void stopConsumers() throws Exception- Throws:
Exception
-
-