2016-01-31 13:30 GMT+03:00 Roel Storms <roel.sto...@gmail.com>:
> Dear Tomcat Devs,
>
> I was wondering why Request is used all over Tomcat as a class and why we
> didn't abstract a Request interface and implemented a StandardRequest as is
> done by a lot of other components like Session->StandardSession;
> Manager->StandardManager; Context->StandardContext; ...
>
> Is there any reasoning behind this?

https://en.wikipedia.org/wiki/KISS_principle

Also, there is already an interface
[[[
package org.apache.catalina.connector;
public class Request implements HttpServletRequest
]]]

and
[[[
package javax.servlet.http;
public interface HttpServletRequest extends ServletRequest {
]]]


If we are talking about other class
[[[
package org.apache.coyote;
public final class Request {
]]]

It is final and no other implementations are allowed.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to