| java.lang.Object org.outerj.daisy.frontend.FrontEndContext
FrontEndContext | public class FrontEndContext (Code) | | Provides access to front end (= "Daisy Wiki") context.
Since FrontEndContext is specific for a request, it should not be stored
in places that exist longer than the duration of the request (e.g. session,
stateful flow variables, ...)
|
Constructor Summary | |
protected | FrontEndContext(Request request, ServiceManager serviceManager, Logger logger, String mountPoint, String daisyCocoonPath, String daisyContextPath) |
REQUEST_ATTR_KEY | final public static String REQUEST_ATTR_KEY(Code) | | |
FrontEndContext | protected FrontEndContext(Request request, ServiceManager serviceManager, Logger logger, String mountPoint, String daisyCocoonPath, String daisyContextPath)(Code) | | |
get | public static FrontEndContext get(Request request)(Code) | | Gets the front end context associated with the given request object.
Throws an exception if it is missing.
|
getDaisyCocoonPath | public String getDaisyCocoonPath()(Code) | | Place where Daisy is mounted in the Cocoon URL space. In other
words, what you need to put after "cocoon://" to reach the root
Daisy sitemap.
This string should correspond to a part (or whole) of the
FrontEndContext.getMountPoint mount point .
|
getDaisyContextPath | public String getDaisyContextPath()(Code) | | Path on disk to the location of the Daisy front end application
(= subdir within the Cocoon webapp).
|
getGlobalSkinConf | public SaxBuffer getGlobalSkinConf() throws Exception(Code) | | |
getLayoutType | public String getLayoutType()(Code) | | Returns the layoutType specified on the request, or null if not specified.
|
getLog | public Logger getLog()(Code) | | |
getMountPoint | public String getMountPoint()(Code) | | The place where the frontend is mounted in the URL space.
Could e.g. by "/daisy" or an empty string. Useful for building
up absolute URLs.
|
getRepository | public Repository getRepository(String login, String password) throws Exception(Code) | | Gets access to the repository object for a specific user, without changing
the current repository of the session.
|
inSite | public boolean inSite()(Code) | | |
isLocaleSet | public boolean isLocaleSet()(Code) | | Test is the locale is set. Usually this is always the case, except if an error would
occur before this initialization.
|
isSkinSet | public boolean isSkinSet()(Code) | | |
setLocaleCookie | public static void setLocaleCookie(String locale, Response response)(Code) | | |
|
|