org.apache.camel.component.http
Interface HttpServletUrlRewrite

All Superinterfaces:
UrlRewrite

public interface HttpServletUrlRewrite
extends UrlRewrite

Extended UrlRewrite which leverages HttpServletRequest during the rewrite process.

For example the camel-urlrewrite component supports HttpServletUrlRewrite implementations.


Method Summary
 String rewrite(String url, String relativeUrl, org.apache.camel.Producer producer, javax.servlet.http.HttpServletRequest request)
          Rewrite the url.
 
Methods inherited from interface org.apache.camel.component.http.UrlRewrite
rewrite
 

Method Detail

rewrite

String rewrite(String url,
               String relativeUrl,
               org.apache.camel.Producer producer,
               javax.servlet.http.HttpServletRequest request)
               throws Exception
Rewrite the url.

Parameters:
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 url
request - the http servlet request
Returns:
the rewritten url, or null to use the original url
Throws:
Exception - is thrown if error rewriting the url


Apache Camel