public interface HttpServletUrlRewrite extends UrlRewrite
UrlRewrite which leverages HttpServletRequest
during the rewrite process.
For example the camel-urlrewrite component supports
HttpServletUrlRewrite implementations.| Modifier and Type | Method and Description |
|---|---|
String |
rewrite(String url,
String relativeUrl,
org.apache.camel.Producer producer,
javax.servlet.http.HttpServletRequest request)
Rewrite the url.
|
rewriteString rewrite(String url, String relativeUrl, org.apache.camel.Producer producer, javax.servlet.http.HttpServletRequest request) throws Exception
url - the absolute url (eg with scheme://host:port/path?query)relativeUrl - optional relative url, if bridging endpoints, which then would be without the base path from the
endpoint from the given producer.producer - the producer to use the rewritten urlrequest - the http servlet requestException - is thrown if error rewriting the urlApache Camel