You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <lg...@mobilebox.pl> on 2005/07/04 12:52:19 UTC

Response interface

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