Hello Leigh, you're right, these Java access modifiers moved from "private" to "protected" in the current trunk (2.1 release) on the 7th of december 2010. you can have a look here for more details about this update http://restlet.tigris.org/source/browse/restlet/trunk/modules/org.restlet/src/org/restlet/resource/ClientResource.java?revision=7211&view=markup . I think that Jerome did not update the 2.0 branch in order to keep the API intact, so I'm not sure he's enclined to change that.
Do you mind waiting the 2.1 release (planned for the second quarter of 2011 http://www.restlet.org/about/roadmap)? As a workaround, you can still override the ClientResource code and adapt the current behaviour Best regards, Thierry Boileau I'd like to make a ClientResource.get call and get back the status, no > matter what it is. > The lowest level in ClientResource prohibits this: > > private Representation handle(Method method, Representation entity, > ClientInfo clientInfo) { > ... > // Actually handle the call > Response response = handle(request); > > if (response.getStatus().isError()) { > throw new ResourceException(response.getStatus()); > } else { > result = (response == null) ? null : response.getEntity(); > } > > Since it's private I can't even override it. > > Am I missing something? > > Leigh. > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2704680 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2704816

