Have you tried completeWith of RequestContext, which takes a
Future<RouteResult> as parameter?

The ask returns a Future that you should be able to map to a
Future<RouteResult>.

/Patrik


On Sat, Mar 14, 2015 at 11:25 AM, Mohamed Ragab <[email protected]> wrote:

> Hello,
>
> I am trying to use akka-http from the java API, where the requests get
> processed by an actor
>
> I started from the test code, and read everything I was able to find on
> the forum and else where. I have tried many combinations so far, non of
> which compile
>
> Would anyone kindly share a working example for how to create a Route in
> Java that asks an actor for the result
>
> Many thanks
> Mohamed Ragab
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to