Hi,
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!! can
any one look at my code and suggest where i am missing? or any code to help is
more appreciated :)
Application
----------
public MYApplication(final Context context) {
super(context);
setStatusService(new ErrorStatusService());
}
ErrorStatusService
------------------
public class ErrorStatusService extends StatusService {
public ErrorStatusService() {
super(true);
}
@Override
public Status getStatus(final Throwable throwable, final Request
request, final Response response) {
response.redirectTemporary("/error.html");
return response.getStatus();
}
please help me.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1010040