org.apache.camel.component.urlrewrite.http
Class HttpUrlRewrite

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.component.urlrewrite.UrlRewriteFilter
          extended by org.apache.camel.component.urlrewrite.http.HttpUrlRewrite
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.component.http.HttpServletUrlRewrite, org.apache.camel.component.http.UrlRewrite, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class HttpUrlRewrite
extends UrlRewriteFilter
implements org.apache.camel.component.http.HttpServletUrlRewrite

The camel-http component implementation of the HttpServletUrlRewrite.


Field Summary
 
Fields inherited from class org.apache.camel.component.urlrewrite.UrlRewriteFilter
camelContext, conf, configFile, decodeUsing, defaultMatchType, modRewriteConfFile, modRewriteConfText, urlRewriter, useContext, useQueryString
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
HttpUrlRewrite()
           
 
Method Summary
 String rewrite(String url, String relativeUrl, org.apache.camel.Producer producer)
           
 String rewrite(String url, String relativeUrl, org.apache.camel.Producer producer, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.apache.camel.component.urlrewrite.UrlRewriteFilter
doShutdown, doStart, doStop, getCamelContext, getConf, getConfigFile, getDecodeUsing, getDefaultMatchType, getModRewriteConfFile, getModRewriteConfText, getUrlRewriter, isSingleton, isUseContext, isUseQueryString, rewrite, setCamelContext, setConf, setConfigFile, setDecodeUsing, setDefaultMatchType, setModRewriteConfFile, setModRewriteConfText, setUrlRewriter, setUseContext, setUseQueryString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUrlRewrite

public HttpUrlRewrite()
Method Detail

rewrite

public String rewrite(String url,
                      String relativeUrl,
                      org.apache.camel.Producer producer,
                      javax.servlet.http.HttpServletRequest request)
               throws Exception
Specified by:
rewrite in interface org.apache.camel.component.http.HttpServletUrlRewrite
Throws:
Exception

rewrite

public String rewrite(String url,
                      String relativeUrl,
                      org.apache.camel.Producer producer)
               throws Exception
Specified by:
rewrite in interface org.apache.camel.component.http.UrlRewrite
Throws:
Exception


Apache Camel