cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Response interface
Date Mon, 04 Jul 2005 10:52:19 GMT
Recently we have modified the Request interface. The source shows that 
Response interface is also awkward in some places.

from ResourceReader:

// TC: Hm.. why don't we have setStatus in the Response interface ?
if (response instanceof HttpResponse) {
     // Respond with status 416 (Request range not satisfiable)
     ((HttpResponse)response).setStatus(416);
     if (getLogger().isDebugEnabled()) {
         getLogger().debug("malformed byte range header [" + 
String.valueOf(ranges) + "]");
     }
}

WDYT?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message