View Javadoc

1   package org.paneris.bibliomania;
2   
3   import org.melati.Melati;
4   import org.webmacro.servlet.WebContext;
5   
6   public class EnsureLogin extends BibliomaniaServlet {
7   
8     /**
9      * 
10     */
11    private static final long serialVersionUID = 1L;
12  
13    protected String bibliomaniaHandle(Melati melati, WebContext context)
14              throws Exception {
15  
16      if (melati.getUser().isGuest()) throw new BibliomaniaAccessPoemException();
17      melati.getResponse().sendRedirect(context.getForm("continuationURL"));
18      return null;
19    }
20  }