org.outerj.daisy.frontend
Class AbstractDocumentApple

java.lang.Object
  extended by org.outerj.daisy.frontend.util.AbstractDaisyApple
      extended by org.outerj.daisy.frontend.AbstractDocumentApple
Direct Known Subclasses:
CreateDocumentVariantApple, DocumentApple

public abstract class AbstractDocumentApple
extends AbstractDaisyApple

This class provides basic handling for all types of request related to a specific document, more specifically the determination of the document variant (id, branch, language) to be handled based on the URL path, the SiteConf and request parameters.


Constructor Summary
AbstractDocumentApple()
           
 
Method Summary
protected  long getBranchId()
           
protected  long getDocumentId()
           
protected  long getLanguageId()
           
protected  org.outerj.daisy.repository.clientimpl.RemoteRepositoryImpl getRepository()
           
protected  java.lang.String getRequestedNavigationPath()
           
protected  ServiceManager getServiceManager()
           
protected  SiteConf getSiteConf()
           
protected  java.lang.String getVariantParams()
           
protected  java.lang.String getVariantQueryString()
           
protected  long getVersionId()
           
protected abstract  boolean needsInitialisation()
           
protected abstract  void processDocumentRequest(AppleRequest appleRequest, AppleResponse appleResponse)
           
protected  void processInternal(AppleRequest appleRequest, AppleResponse appleResponse)
           
 void service(ServiceManager serviceManager)
           
protected  void setBranchAndLanguage(long branchId, long languageId)
           
 
Methods inherited from class org.outerj.daisy.frontend.util.AbstractDaisyApple
contextualize, getContext, getContinuationId, getLayoutType, getLayoutType, getMountPoint, getSkin, needsMutex, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDocumentApple

public AbstractDocumentApple()
Method Detail

service

public final void service(ServiceManager serviceManager)

processInternal

protected final void processInternal(AppleRequest appleRequest,
                                     AppleResponse appleResponse)
                              throws java.lang.Exception
Specified by:
processInternal in class AbstractDaisyApple
Throws:
java.lang.Exception

setBranchAndLanguage

protected void setBranchAndLanguage(long branchId,
                                    long languageId)
                             throws java.lang.Exception
Throws:
java.lang.Exception

processDocumentRequest

protected abstract void processDocumentRequest(AppleRequest appleRequest,
                                               AppleResponse appleResponse)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

needsInitialisation

protected abstract boolean needsInitialisation()

getDocumentId

protected long getDocumentId()

getBranchId

protected long getBranchId()

getLanguageId

protected long getLanguageId()

getVersionId

protected long getVersionId()

getVariantParams

protected java.lang.String getVariantParams()

getVariantQueryString

protected java.lang.String getVariantQueryString()

getSiteConf

protected SiteConf getSiteConf()

getRepository

protected org.outerj.daisy.repository.clientimpl.RemoteRepositoryImpl getRepository()

getServiceManager

protected ServiceManager getServiceManager()

getRequestedNavigationPath

protected java.lang.String getRequestedNavigationPath()


Copyright © -2006 . All Rights Reserved.