Class Jt400MockResource
java.lang.Object
org.apache.camel.quarkus.component.jt400.mocked.it.Jt400MockResource
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) MockAS400ImplRemote(package private) org.apache.camel.ConsumerTemplate(package private) org.apache.camel.CamelContext(package private) org.apache.camel.ProducerTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsekeyedDataQueueWrite(String key, String data) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsemessageQueueWrite(String key, String data) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseputMockResponse(Map params) jakarta.ws.rs.core.Response
-
Field Details
-
context
@Inject org.apache.camel.CamelContext context -
producerTemplate
@Inject org.apache.camel.ProducerTemplate producerTemplate -
consumerTemplate
@Inject org.apache.camel.ConsumerTemplate consumerTemplate -
as400ImplRemote
-
-
Constructor Details
-
Jt400MockResource
public Jt400MockResource()
-
-
Method Details
-
keyedDataQueueRead
@Path("/keyedDataQueue/read") @GET @Produces("text/plain") public jakarta.ws.rs.core.Response keyedDataQueueRead() -
keyedDataQueueWrite
@Path("/keyedDataQueue/write/{key}") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response keyedDataQueueWrite(@PathParam("key") String key, String data) throws Exception - Throws:
Exception
-
messageQueueRead
@Path("/messageQueue/read") @GET @Produces("text/plain") public jakarta.ws.rs.core.Response messageQueueRead() throws InterruptedException- Throws:
InterruptedException
-
messageQueueWrite
@Path("/messageQueue/write/{key}") @POST @Consumes("text/plain") @Produces("text/plain") public jakarta.ws.rs.core.Response messageQueueWrite(@PathParam("key") String key, String data) throws Exception - Throws:
Exception
-
programCall
@Path("/programCall") @POST @Consumes("text/plain") @Produces("application/json") public jakarta.ws.rs.core.Response programCall() throws Exception- Throws:
Exception
-
putMockResponse
@Path("/put/mockResponse") @POST @Consumes("application/json") public jakarta.ws.rs.core.Response putMockResponse(Map params) throws Exception - Throws:
Exception
-
stopComponent
@Path("/component/stopWrong") @GET @Produces("text/plain") public jakarta.ws.rs.core.Response stopComponent() throws Exception- Throws:
Exception
-