camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Kettelerij <richardkettele...@gmail.com>
Subject Re: Dynamic Resource URIs
Date Tue, 31 May 2011 20:21:43 GMT
Fernando, push down to to what framework? camel-core? I don't quite
understand what you're proposing, can you elaborate it a bit?

On Tue, May 31, 2011 at 4:18 PM, Fernando Ribeiro <
webmaster@fernandoribeiro.eti.br> wrote:

> Any feedback? Thanks.
>
> On Thu, May 26, 2011 at 11:25 PM, Fernando Ribeiro <
> webmaster@fernandoribeiro.eti.br> wrote:
>
> > All,
> >
> > In the FreeMarker component there is code for an endpoint to check if an
> > endpoint for a resource URI passed in a header already exists and, if so,
> > route the message to it, it reads like this:
> >
> > String newResourceUri =
> > exchange.getIn().getHeader(FreemarkerConstants.FREEMARKER_RESOURCE_URI,
> > String.class);
> >
> > if (newResourceUri != null) {
> >
> >
> exchange.getIn().removeHeader(FreemarkerConstants.FREEMARKER_RESOURCE_URI);
> >
> >   if (log.isDebugEnabled()) {
> >     log.debug(FreemarkerConstants.FREEMARKER_RESOURCE_URI + " set to " +
> > newResourceUri + " creating new endpoint to handle exchange");
> >   }
> >
> >   FreemarkerEndpoint newEndpoint = findOrCreateEndpoint(getEndpointUri(),
> > newResourceUri);
> >   newEndpoint.onExchange(exchange);
> >   return;
> > }
> >
> > I wonder if we can't push this behavior down to the framework, what do
> you
> > say?
> >
> > Thanks,
> >
> > Fernando
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message