You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Abhijith <ab...@gmail.com> on 2012/12/22 02:25:44 UTC
Camel Apache HTTP ProxyPass
Hi,
I am try to create proxy for streaming video, below is my requirement:
Proxy - http://abcd.com/media/xyz.m4v to http://efgh.com/media/xyz.m4v .
Did following spring dsl configuration in my abcd.com server:
<route>
<from uri="servlet:///media/xyz.m4v" />
<to
uri="http:///efgh.com/media/xyz.m4v?bridgeEndpoint=true&throwExceptionOnFailure=false"
/>
<setHeader headerName="Content-type">
<constant>"video/m4v"</constant>
</setHeader>
</route>
This works fine for media xyz.m4v, but how can I make the filename(xyz.m4v)
of media dynamic so that I can stream any video with media/*.m4v .
Thanks,
Abhi
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Apache-HTTP-ProxyPass-tp5724527.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel Apache HTTP ProxyPass
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
See this FAQ
http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html
On Sat, Dec 22, 2012 at 2:25 AM, Abhijith <ab...@gmail.com> wrote:
> Hi,
>
> I am try to create proxy for streaming video, below is my requirement:
>
> Proxy - http://abcd.com/media/xyz.m4v to http://efgh.com/media/xyz.m4v .
>
> Did following spring dsl configuration in my abcd.com server:
>
> <route>
> <from uri="servlet:///media/xyz.m4v" />
> <to
> uri="http:///efgh.com/media/xyz.m4v?bridgeEndpoint=true&throwExceptionOnFailure=false"
> />
> <setHeader headerName="Content-type">
> <constant>"video/m4v"</constant>
> </setHeader>
> </route>
>
> This works fine for media xyz.m4v, but how can I make the filename(xyz.m4v)
> of media dynamic so that I can stream any video with media/*.m4v .
>
>
> Thanks,
> Abhi
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Apache-HTTP-ProxyPass-tp5724527.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen