public class ServletRestServletResolveConsumerStrategy
extends org.apache.camel.component.http.HttpServletResolveConsumerStrategy
HttpServletResolveConsumerStrategy
that supports the Rest DSL.Constructor and Description |
---|
ServletRestServletResolveConsumerStrategy() |
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 ServletRestServletResolveConsumerStrategy()
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.ServletResolveConsumerStrategy
resolve
in class org.apache.camel.component.http.HttpServletResolveConsumerStrategy
public 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