Class NettyHttpResource
java.lang.Object
org.apache.camel.quarkus.component.http.common.AbstractHttpResource
org.apache.camel.quarkus.component.http.netty.NettyHttpResource
@Path("/test/client/netty-http")
@ApplicationScoped
public class NettyHttpResource
extends AbstractHttpResource
-
Field Summary
Fields inherited from class org.apache.camel.quarkus.component.http.common.AbstractHttpResource
consumerTemplate, producerTemplate, PROXIED_URL, USER_ADMIN, USER_ADMIN_PASSWORD, USER_NO_ADMIN, USER_NO_ADMIN_PASSWORD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsecompression(int port) getRequest(String method, String headerName, String headerValue, String body, int port) getResponse(String message, int port) httpGet(int port) nettyHttpSerializedException(int port) proxy(int port, int proxyPort) Methods inherited from class org.apache.camel.quarkus.component.http.common.AbstractHttpResource
basicAuth, httpsGet
-
Constructor Details
-
NettyHttpResource
public NettyHttpResource()
-
-
Method Details
-
httpGet
- Specified by:
httpGetin classAbstractHttpResource
-
httpPost
@Path("/post") @POST @Consumes("text/plain") @Produces("text/plain") public String httpPost(@QueryParam("test-port") int port, String message) - Specified by:
httpPostin classAbstractHttpResource
-
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:
basicAuthin classAbstractHttpResource
-
httpProxy
- Specified by:
httpProxyin classAbstractHttpResource
-
compression
@Path("/compression") @GET @Produces("text/plain") public String compression(@QueryParam("test-port") int port) throws IOException - Throws:
IOException
-
nettyHttpSerializedException
@Path("/serialized/exception") @GET @Produces("text/plain") public String nettyHttpSerializedException(@QueryParam("test-port") int port) -
getRequest
-
getResponse
-
wildcard
-
proxy
@GET @Path("/consumer-proxy") public String proxy(@QueryParam("test-port") int port, @QueryParam("proxy-port") int proxyPort) -
auth
-
rest
-
restPojo
-
auth
-