Package edu.uiuc.ncsa.security.servlet
Interface Presentable
- 
 public interface PresentableCreated by Jeff Gaynor 
 on 10/20/11 at 2:02 PMA filter for servlets that display something.Servlets that present something to a user (e.g. those serving up JSP) implement this interface. The contract is then that in the main doGet or doPost methods, prepare is invoked before the start of every call and present at the very end. Generally servlets should not touch the response output stream before handing it off, though be sure to consult any documentation. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleError(PresentableState state, Throwable t)Handle and error.voidprepare(PresentableState state)This is invoked before the main processing for this servlet.voidpresent(PresentableState state)This is invoked after the main processing for the servlet.
 
- 
- 
- 
Method Detail- 
preparevoid prepare(PresentableState state) throws Throwable This is invoked before the main processing for this servlet. The aim is that all presentation-specific processing will be done here, e.g. setting form values before displaying them.- Parameters:
- state-
- Throws:
- Throwable
 
 - 
presentvoid present(PresentableState state) throws Throwable This is invoked after the main processing for the servlet. This contains the code that actually displays the results of processing to the user.- Parameters:
- state-
- Throws:
- Throwable
 
 - 
handleErrorvoid handleError(PresentableState state, Throwable t) throws IOException, javax.servlet.ServletException Handle and error. Generally this means show an error page to be displayed when there is a problem. If this is due to an exception, the exception handler will pass along the exception as an attribute named exception in the request.- Throws:
- IOException
- javax.servlet.ServletException
 
 
- 
 
-