org.activemath.webapp.controller
Class ViewBook

java.lang.Object
  extended by org.infohazard.maverick.ctl.Throwaway2
      extended by org.infohazard.maverick.ctl.ThrowawayBean2
          extended by org.activemath.webapp.base.ControllerBase
              extended by org.activemath.webapp.controller.ViewBook
All Implemented Interfaces:
Controller
Direct Known Subclasses:
ViewPageItem

public class ViewBook
extends ControllerBase

Controller to view a book This is the central controller to view content in ActiveMath. Request parameters:


Field Summary
 
Fields inherited from class org.activemath.webapp.base.ControllerBase
appContext, defaultContentType, JSON, REDIRECT, REDIRECT_LOGIN, request, response, stopwatch
 
Fields inherited from class org.infohazard.maverick.ctl.Throwaway2
ERROR, SUCCESS
 
Constructor Summary
ViewBook()
           
 
Method Summary
protected  String action()
          View a page of a book We distinguish between a textual and binary layout format.
 void setBook(String string)
           
 void setChapter(String string)
           
 void setPage(String string)
           
 void setSlide(String slide)
           
 
Methods inherited from class org.activemath.webapp.base.ControllerBase
addError, addError, enableNoCache, escapeForHtmlSafety, getAccountManager, getAppSession, getCmdName, getCurrentUser, getErrors, getHttpSession, getLanguage, getModel, getOutputFormat, getRequest, getResponse, getSkin, hasErrors, perform, publishControllerEvent, sendError, sendError, sendJson, sendLoginRequired, sendRedirect, sendRedirect, setPasswd, setUser
 
Methods inherited from class org.infohazard.maverick.ctl.ThrowawayBean2
go
 
Methods inherited from class org.infohazard.maverick.ctl.Throwaway2
getCtx, go
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewBook

public ViewBook()
Method Detail

setBook

public void setBook(String string)

setChapter

public void setChapter(String string)

setPage

public void setPage(String string)

setSlide

public void setSlide(String slide)

action

protected String action()
                 throws Exception
View a page of a book We distinguish between a textual and binary layout format. Textual formats are created by a Velocity template and are rendered to the Servlets PrintWriter. For binary formats, we first create the required assembly format (which is usually textual) by Veloctiy, then pass on the result to the presentation formatter. This will render to the Servlet's OutputStream. In both cases, callbacks into the presentation formatting systems are done by a TransformerTool.

Overrides:
action in class ControllerBase
Throws:
Exception
See Also:
org.activemath.presentation.servlets.controller.AMController#action()