On Sat, Aug 18, 2012 at 9:01 AM, Roberto Calero La Torre < [email protected]> wrote:
> Does the filter mediator support regex expressions?**** > > ** ** > > i.e something://universe/<regex1>/abc/<regex2> and placeholder > replacement on the actual endpoint i.e > http://abc/<placeholder1>/xyz/<placeholder2> > Yes, any valid Java reg-ex can be supported. > **** > > ** ** > > Is there a way to specify an endpoint address to the filesystem? i.e: > file://.. ? > Yes, you need to use the file transport sender. See samples 254-255. Thanks, Hiranya > **** > > ** ** > > Thanks for your time,**** > > ** ** > > Roberto**** > > ** ** > > *From:* Rajika Kumarasiri [mailto:[email protected]] > *Sent:* Friday, 17 August 2012 6:52 PM > *To:* [email protected] > *Subject:* Re: Service Mediation / Content Mediation**** > > ** ** > > Yeah. You can use the filter mediator to decide based on the content(To > address) and XSLT mediator to transform the request to another format. > Check, **** > > ** ** > > http://synapse.apache.org/userguide/samples/sample1.html**** > > ** ** > > http://synapse.apache.org/userguide/samples/sample8.html**** > > ** ** > > Hope this helps. **** > > ** ** > > Rajika**** > > ** ** > > On Fri, Aug 17, 2012 at 1:48 PM, Roberto Calero La Torre < > [email protected]> wrote:**** > > Hi,**** > > **** > > I’m still getting my head around Synapse since I’m thinking of moving from > Mule for an ESB implementation we have.**** > > **** > > Question:**** > > **** > > Our messages currently pass in a string (uri) which is then routed to the > actual endpoint, i.e. “equity://stock/xyz” would hit the stock endpoint > whereas “equity://warrant/abc” would hit a different one. I’d like a single > service endpoint to hit from my client, pass in the above message and then > route the message to the right endpoint. **** > > **** > > So my question is… should this be handled by the mediator? What if I want > to transform the payload being sent back by applying an xslt > transformation.. a mediator as well?**** > > **** > > Roberto.**** > > ** ** > -- Hiranya Jayathilaka Associate Technical Lead; WSO2 Inc.; http://wso2.org E-mail: [email protected]; Mobile: +94 77 633 3491 Blog: http://techfeast-hiranya.blogspot.com
