Class HttpResource

java.lang.Object
org.apache.camel.quarkus.component.http.common.AbstractHttpResource
org.apache.camel.quarkus.component.http.http.HttpResource

@Path("/test/client/http") @ApplicationScoped public class HttpResource extends AbstractHttpResource
  • Constructor Details

    • HttpResource

      public HttpResource()
  • Method Details

    • httpGet

      @Path("/get") @GET @Produces("text/plain") public String httpGet(@QueryParam("test-port") int port)
      Specified by:
      httpGet in class AbstractHttpResource
    • httpPost

      @Path("/post") @POST @Consumes("text/plain") @Produces("text/plain") public String httpPost(@QueryParam("test-port") int port, String message)
      Specified by:
      httpPost in class AbstractHttpResource
    • basicAuth

      @Path("/auth/basic") @GET @Produces("text/plain") public jakarta.ws.rs.core.Response basicAuth(@QueryParam("test-port") int port, @QueryParam("username") String username, @QueryParam("password") String password)
      Specified by:
      basicAuth in class AbstractHttpResource
    • httpBasicAuthCache

      @Path("/auth/basic/cache") @GET @Produces("text/plain") public jakarta.ws.rs.core.Response httpBasicAuthCache(@QueryParam("test-port") int port)
    • httpProxy

      @Path("/proxy") @GET @Produces("application/xml") public String httpProxy()
      Specified by:
      httpProxy in class AbstractHttpResource
    • getSendDynamic

      @Path("/send-dynamic") @GET @Produces("application/json") public String getSendDynamic(@QueryParam("test-port") int port)
    • get

      @Path("/send-dynamic/service") @GET @Produces("application/json") public jakarta.json.JsonObject get(@QueryParam("q") String q, @QueryParam("fq") String fq)
    • sendDynamicRoutes

      @ApplicationScoped org.apache.camel.RoutesBuilder sendDynamicRoutes()
    • operationFailedException

      @Path("/operation/failed/exception") @GET @Produces("text/plain") public String operationFailedException()
    • compression

      @Path("/compression") @GET @Produces("text/plain") public String compression()