Hi,
I'm trying to set a StatusService object on a Component. In my custom
StatusService object, I'm overriding the getStatus() method so that I
can do some custom handling based on various exceptions being thrown in
our restlets and resources.
If I call Component#setStatusService, the StatusService#getStatus()
method is never called, only getRepresentation() is called. However, if
I create an Application instance and call Application#setStatusService
on it, the StatusService#getStatus() method is correctly invoked and I
can get control over the returned status code, etc. based on the Throwable.
I'm under the impression that these two cases should work identically.
So, I'm guessing that this is a bug? Or, is there something in my
implementation that I'm doing wrong?
Thanks in advance,
Adam
- StatusService Question / Potential Bug Adam Taft
-