In the message "Re: StatusService not working", dated 2009-01-07,
Aron Roberts wrote:
>At 07:23 -0800 2009-01-07, Ganesh wrote:
>>i am trying to add a custom StatusService to my application, that
>>should go to given error page when the resource not found.for the
>>known resources it is going fine..if it is an unknown resource the
>>getStatus is not called!!
>
>In the message "Re: StatusService not working", dated 2009-01-07,
>Stephen Groucutt wrote:
>>Not sure exactly, but could you try overriding getStatus(Status,
>>Request, Response) and see if that works?
>
> From now-hazy memory, it may have also been necessary to enable
>setOverwrite in the parent StatusService instance in order to return
>a error response, rather than Restlet's default response ...
One more follow-up: the specific classes in StatusService that my
custom status service may have needed to override (at least based on
'@Override' annotations :-), were:
public Representation getRepresentation( Status status, Request
request, Response response ) {}
public Status getStatus( Throwable throwable, Request request,
Response response ) {}
Aron
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1010574