-
Apr 15th, 2005, 05:39 AM
#1
UnavailableException and the LastModified interface
Hi!
We have a controller that implements org.springframework.web.servlet.mvc.LastModified (and Controller).
In our getLastModified method we are looking for some resources that we neeed to check the lastModified date. If we don't find these resources the will not do what I should and should not be avalable.
I have seen that UnavailableException is an exception that can be used to indicate that a application is permanently or temporarily unavailable, so if we don't find the recources we need in order to get the lastModifiedDate we ccould throw a UnavailableException.
But... if we throw this exception in getLastModified we break the LastModified interface.
Any ideas on how to handle this in Spring?
TIA!
-Kaj
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules