When should one create interface for request or response for messaging within the application

Posted by Nayn on Stack Overflow See other posts from Stack Overflow or by Nayn
Published on 2010-06-02T11:52:28Z Indexed on 2010/06/02 11:53 UTC
Read the original article Hit count: 166

Filed under:

Hi, I want to know if there is any need to create interface for request/response objects. I know ServletRequest is an interface.

I see request/response as simple pojo, where having some members to hold data and getter/setters would suffice.

The processing of such data could be delegated to external utility classes.

Does anyone have specific inputs on this? Thanks Nayn

© Stack Overflow or respective owner

Related posts about java