Hi,
I need to connect to a restful service at some host, and grab documents based on a path. eg
class Downloader extends Actor with Producer {
}
then
val downloader = Actor.actorOf[Downloader].start()
val response = downloader !! "/trade/1234"
and the body of the response should have a string (json/xml/etc)
But, the above isn't working for me because the path being sent to the actor is being ignored.
I tried adding:
override protected def receiveBeforeProduce = {
case msg: Message ⇒ msg.setHeaders(msg.headers(Set(Exchange.HTTP_PATH)))
}
But that failed too.
How can I do this?
Channing