From: Xavier Noria Date: 2003-09-08T00:13:41+09:00 Subject: Re: initializing a servlet in WEBRick On Sunday 07 September 2003 15:43, GOTOU Yuuzou wrote: > If it's explained simply, servelets are activated in the > following sequence: > > << accept connection and receive HTTP request >> > << find a ServletClass associated with path of URL >> > > # the third and more arguments of mount() will be passed to > options. servlet = ServletClass.get_instance(server, *options) > servlet.service(req, res) > > << send response >> > > If it can respond to get_instance and service, any kind of > object can be mounted as a servelet. << cut >> That's very helpful, thank you very much GOTOU. The code shouldn't depend on the implementation of WEBrick however, do you think we can rely on the outlined sequence � << accept connection and receive HTTP request >> � << find a ServletClass associated with path of URL >> � # the third and more arguments of mount() will be passed to options. � servlet = ServletClass.get_instance(server, *options) � servlet.service(req, res) � << send response >> ? -- fxn PS: I am sorry for the typo in the subject.