> I need to be able to get to HTTP status codes. > Response is nice and generic, but for my purposes it also hides too > much. > > > >Most protocols return status codes in responses, I think. > > If my assumption above is correct, then adding public abstract int > getCode() method would make sense for most protocols.
Right, but the idea is to encapsulate the protocol specifics in the protocol class, which the proposed solution does. Without knowing the specifics of your needs, introducing the getCode() method would go against this design principle. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Nutch-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nutch-developers
