Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [maxq-dev] IAgent - pluggable HTTP agents

maxq
Discussion topic

Back to topic list

Re: [maxq-dev] IAgent - pluggable HTTP agents

Author oliverbock
Full name Oliver Bock
Date 2004-10-18 16:46:26 PDT
Message On 19/10/2004, at 09:40, Frank Cohen wrote:
>>>>> 2) The interface should provide for proxy server information:
>>>>> proxy address, port, user name, user password.
>>>>
>>>> Proxy information is available to implementations of IAgent (or
>>>> whatever it will be called) via the maxq.Config class.
>>>
>>> It's ok with me to put this info into the config file, but I would
>>> prefer to have an API for it too. Also, I don't see in the current
>>> config file a facility for proxy user name and proxy user password.
>>
>> I'm confused because there is an API, it is the API provided by
>> Config.java. Config.java will read the settings from
>> maxq.properties. Is this what you meant?
>
> I would prefer to have an explicit method I can call to set the proxy
> info, rather than going indirect through Config and the properties
> file.

So then the two options are:

1. During initialization, an IAgent (or whatever it will be called)
calls Config.getProxySettings() if it supports proxies. It uses this
information to initialize its underlying library.

2. Initialisation is a multi step process:
   a. Create IAgent-derived class.
   b. Call some setProxy() function.
   c. Call some other function so that it completes its initialisation.

What is the advantage of this more complicated approach? Why should
the class factory for IAgents need to know about proxies? The point of
the Config.java class is that it provides configuration to the other
classes. What purpose does an extra layer serve?

>> There is nothing in theConfig.java for proxy user name and password
>> simply because MaxQ only supports anonymous proxies. If you do add
>> them to Config, please also enhance the code in ProxyServer.java and
>> HttpTestCase.java to use them so the settings are universal.
>> Probably this is just a matter of supplying the extra information to
>> the same APIs that are already being used.
>
> Doesn't Apache HTTP Client support secure proxies? I think it does. In
> which case MaxQ should support it too.

It probably does support secure proxies, and you are very welcome to
make the change. If you do so you will also need to change the proxy
support that is used during recording in ProxyServer.java.


   Oliver


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at maxq dot tigris dot org
For additional commands, e-mail: dev-help at maxq dot tigris dot org

« Previous message in topic | 7 of 12 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 01:14:06 PDT
     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 09:41:39 PDT
         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 15:00:14 PDT
             Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 16:19:00 PDT
                 Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 16:33:03 PDT
                     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 16:40:42 PDT
                         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 16:46:26 PDT
                             Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 18:29:00 PDT
                                 Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 18:47:04 PDT
                                     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 19:19:08 PDT
     Re: [maxq-dev] IAgent - pluggable HTTP agents hdara at primavera dot com hdara at primavera dot com 2004-10-18 11:02:51 PDT
         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 15:19:16 PDT
Messages per page: