opensubscriber
   Find in this group all groups
 
Unknown more information…

d : dev@hc.apache.org 9 June 2009 • 11:12PM -0400

[NIO HttpCore user] sending requests
by Pasquiers Gwenhael

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi,

We are currently using HttpCore (non-NIO) in some test application; we
have a growing number of connection so I'm trying to use the http.nio
libraries instead.

FYI, this tool "executes" XML script describing http callflows.


I hope I'll be clear enough:

For now I'm doing the client side, I'm using :

DefaultConnectingIOReactor
  - DefaultClientIOEventDispatch
      - BufferingHttpClientHandler
          - HttpProcessor (custom, does nothing)
          - HttpRequestExecutionHandler (custom)

I do manage to establish a connection; i get a call to
HttpRequestExecutionHandler.submitRequest(...) and if I, for testing
I return a request there it sends it, nice.

However when I establish this connection I do not know yet the requests
I will have to send, so I have to return null in submitRequest(...);
then submitRequest() isn't called anymore by the lower layers.

My problem is that I did not find how to trigger that event latter
in order to send my requests once I know what they are. Or any other
way to send requests when "I" want to.

I don't know if I'm going the wrong way (not using the right classes?)
or if it is in fact something that is not that simple.

Thanks in advance for your help.

Gwenhaël PASQUIERS

DEVOTEAM / BU Telecom / Developer
Email : gwenhael.pasquiers@devo...


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.a...
For additional commands, e-mail: dev-help@hc.a...


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.