Not sure exactly, but could you try overriding getStatus(Status, Request,
Response) and see if that works?  I assume you are seeing the println in the
constructor, so you know it's getting instantiated - it might just be
calling the other method signature instead, hard to tell.

On Wed, Jan 7, 2009 at 10:14 AM, <[email protected]> wrote:

> Hi,
>    i am trying to configure custom StatusService to handle unknown
> requests. but it is not calling the getStatus method.can any one send one
> sample of how to implement custom StatusService? giving my implementation
> for your ref"
>
> Application
> -----------
> public MyApplication(Context context){
> --
> setStatusService(new ErrorStatusService());
> --
> }
>
> ErrorStatusService.java
>
> public class ErrorStatusService extends StatusService {
>
>
>                public ErrorStatusService() {
>                        super(true);
>                        System.out.println("ErrorStatusService");
>                        //super.setOverwrite(true);
>                }
>
>                @Override
>                public Status getStatus(final Throwable throwable, final
> Request request, final Response response) {
>  response.redirectTemporary("/error.html");
>  return ressponse.getStatus();
> }
> }
>
> please suggest some solution.
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1010026
>

Reply via email to