Maurizio Lotauro a écrit : > > Do you mean the ClientClass property of THttpServer? > The situation is quite different. You need a list of different > decoders, and you don't know in advance how long this list could be > (it depend of the kind of decoders available). > >>i'd say that i would have used something like the TAppServer and >>TServerObject in Midware. > > I newes see MidWare. Can you explain a little more? > >>In a way, not to bother woth any kind of ContentCoding if none is >>"attached" to the HttpCli. and everything is set wihtin the Coding object. > > I'm not sure that I understood what you mean. Can you elaborate? :-)
Well to make it simple : you have a server object (in that case THttpCli). for each Coding way, you have defined a class : TGZipCoding, TMyOwnEncoding, ... then, when configuring your THttpCli component, you call a function to "register" each Coding class : HttpCli1.RegisterEncoding(TGZipcoding); HttpCli1.RegisterEncoding(TMyOwnEncoding); internally, you manage a list of Coding Classes (and objects created at need). then you can call for the coding object when needed. The coding classes could be seen as TComponent's child, in order to be in the palette component and dropped on a form, or mannually (at runtime) added. or, as for what happens with TBitmap, TJpeg, etc... this can be registered within initialization of the unit... and somewhere, something stores the registered Coding class lists... >>>>my 2 cents on pattern design ;) >>> >>>All cents are welkome :-) > >>cents by cents we'ill get some euros ;) > > Of, course, and probably in 50000 years I'll be very rich ;) you'll spare a bit ? uh ? ;) Best regards, -- Guillaume MAISON - [EMAIL PROTECTED] 83, Cours Victor Hugo 47000 AGEN Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50 e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be