public class JettyRestServletResolveConsumerStrategy
extends org.apache.camel.component.http.HttpServletResolveConsumerStrategy
HttpServletResolveConsumerStrategy that supports the Rest DSL.| Constructor and Description |
|---|
JettyRestServletResolveConsumerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matchRestMethod(String method,
String restrict)
Matches the given request HTTP method with the configured HTTP method of the consumer
|
boolean |
matchRestPath(String requestPath,
String consumerPath,
boolean wildcard)
Matches the given request path with the configured consumer path
|
org.apache.camel.component.http.HttpConsumer |
resolve(javax.servlet.http.HttpServletRequest request,
Map<String,org.apache.camel.component.http.HttpConsumer> consumers) |
public JettyRestServletResolveConsumerStrategy()
public org.apache.camel.component.http.HttpConsumer resolve(javax.servlet.http.HttpServletRequest request,
Map<String,org.apache.camel.component.http.HttpConsumer> consumers)
resolve in interface org.apache.camel.component.http.ServletResolveConsumerStrategyresolve in class org.apache.camel.component.http.HttpServletResolveConsumerStrategypublic boolean matchRestPath(String requestPath, String consumerPath, boolean wildcard)
requestPath - the request pathconsumerPath - the consumer path which may use { } tokenspublic boolean matchRestMethod(String method, String restrict)
method - the request HTTP methodrestrict - the consumer configured HTTP restrict methodApache Camel