Announcement Announcement Module
Collapse
No announcement yet.
UnavailableException and the LastModified interface Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X