Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.roller.presentation.velocity
Class ContextLoader  view ContextLoader download ContextLoader.java

java.lang.Object
  extended byorg.roller.presentation.velocity.ContextLoader

public class ContextLoader
extends java.lang.Object

Load Velocity Context with Roller objects, values, and custom plugins.


Field Summary
private static org.apache.commons.logging.Log mLogger
           
private  javax.servlet.jsp.PageContext mPageContext
           
(package private) static java.util.List mPlugins
           
private  javax.servlet.http.HttpServletResponse mResponse
           
private  org.roller.presentation.RollerRequest mRollerReq
           
private  java.lang.String mUsername
           
private  org.apache.velocity.context.Context mVelocityContext
           
 
Constructor Summary
ContextLoader(org.roller.presentation.RollerRequest rreq, javax.servlet.http.HttpServletResponse response, org.apache.velocity.context.Context ctx)
          Initialize VelocityHelper, setting the variables it will be hiding from the Velocimacros.
 
Method Summary
private static java.lang.String figureResourcePath(org.roller.presentation.RollerRequest rreq)
           
 boolean isUserAuthorizedToEdit()
           
protected static void loadCommentValues(org.apache.velocity.context.Context ctx, org.roller.presentation.RollerRequest rreq, org.roller.presentation.RollerContext rollerCtx)
           
protected static void loadPathValues(org.apache.velocity.context.Context ctx, org.roller.presentation.RollerRequest rreq, org.roller.presentation.RollerContext rollerCtx, java.lang.String userName)
           
protected static void loadRequestParamKeys(org.apache.velocity.context.Context ctx)
           
protected static void loadRssValues(org.apache.velocity.context.Context ctx, org.roller.presentation.RollerRequest rreq, java.lang.String userName)
           
protected static void loadUtilityObjects(org.apache.velocity.context.Context ctx, org.roller.presentation.RollerRequest rreq, org.roller.presentation.RollerContext rollerCtx)
           
protected static java.lang.String loadWebsiteValues(org.apache.velocity.context.Context ctx, org.roller.presentation.RollerRequest rreq, org.roller.presentation.RollerContext rollerCtx)
           
static void setupContext(org.apache.velocity.context.Context ctx, org.roller.presentation.RollerRequest rreq, javax.servlet.http.HttpServletResponse response)
          Setup the a Velocity context by loading it with objects, values, and RollerPagePlugins needed for Roller page execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPageContext

private javax.servlet.jsp.PageContext mPageContext

mResponse

private javax.servlet.http.HttpServletResponse mResponse

mRollerReq

private org.roller.presentation.RollerRequest mRollerReq

mUsername

private java.lang.String mUsername

mVelocityContext

private org.apache.velocity.context.Context mVelocityContext

mPlugins

static java.util.List mPlugins

mLogger

private static org.apache.commons.logging.Log mLogger
Constructor Detail

ContextLoader

public ContextLoader(org.roller.presentation.RollerRequest rreq,
                     javax.servlet.http.HttpServletResponse response,
                     org.apache.velocity.context.Context ctx)
Initialize VelocityHelper, setting the variables it will be hiding from the Velocimacros.

Method Detail

setupContext

public static void setupContext(org.apache.velocity.context.Context ctx,
                                org.roller.presentation.RollerRequest rreq,
                                javax.servlet.http.HttpServletResponse response)
                         throws org.roller.RollerException
Setup the a Velocity context by loading it with objects, values, and RollerPagePlugins needed for Roller page execution.


figureResourcePath

private static java.lang.String figureResourcePath(org.roller.presentation.RollerRequest rreq)

isUserAuthorizedToEdit

public boolean isUserAuthorizedToEdit()

loadCommentValues

protected static void loadCommentValues(org.apache.velocity.context.Context ctx,
                                        org.roller.presentation.RollerRequest rreq,
                                        org.roller.presentation.RollerContext rollerCtx)
                                 throws org.roller.RollerException

loadPathValues

protected static void loadPathValues(org.apache.velocity.context.Context ctx,
                                     org.roller.presentation.RollerRequest rreq,
                                     org.roller.presentation.RollerContext rollerCtx,
                                     java.lang.String userName)

loadRequestParamKeys

protected static void loadRequestParamKeys(org.apache.velocity.context.Context ctx)

loadRssValues

protected static void loadRssValues(org.apache.velocity.context.Context ctx,
                                    org.roller.presentation.RollerRequest rreq,
                                    java.lang.String userName)
                             throws org.roller.RollerException

loadUtilityObjects

protected static void loadUtilityObjects(org.apache.velocity.context.Context ctx,
                                         org.roller.presentation.RollerRequest rreq,
                                         org.roller.presentation.RollerContext rollerCtx)

loadWebsiteValues

protected static java.lang.String loadWebsiteValues(org.apache.velocity.context.Context ctx,
                                                    org.roller.presentation.RollerRequest rreq,
                                                    org.roller.presentation.RollerContext rollerCtx)