com.missiondata.oss.lakeshore.requesthandler
Class ApplicationRequestHandler

java.lang.Object
  extended bycom.missiondata.oss.lakeshore.requesthandler.RenderableRequestHandler
      extended bycom.missiondata.oss.lakeshore.requesthandler.ApplicationRequestHandler
All Implemented Interfaces:
RequestHandler

public class ApplicationRequestHandler
extends RenderableRequestHandler

Handles requests for the main application that is running.


Field Summary
 
Fields inherited from class com.missiondata.oss.lakeshore.requesthandler.RenderableRequestHandler
handlerContext
 
Constructor Summary
ApplicationRequestHandler(HandlerContext handlerContext, Controller application, boolean trapBack)
           
 
Method Summary
 Controller getApplication()
           
 java.lang.Object getSessionAttribute(java.lang.String key)
           
 UploadedFile getUploadedFile(java.lang.String key)
           
 void handleRequest(Request request)
           
 boolean isPathInfoEmpty()
           
 boolean isUserInRole(java.lang.String role)
           
 java.lang.String nextId()
           
 void popPathInfo()
           
 void pushPathInfo(java.lang.String pathInfo)
           
 java.lang.Integer registerActionCallBack(CallBack action)
           
 void registerBackActionCallBack(CallBack action)
           
 java.lang.Integer registerCallBack(CallBack action)
           
 java.lang.String registerDependentRequestHandler(RequestHandler dependentRequestHandler)
           
 void setSessionAttribute(java.lang.String key, java.lang.Object attribute)
           
 
Methods inherited from class com.missiondata.oss.lakeshore.requesthandler.RenderableRequestHandler
createActionCallBack, newRenderer, registerApplication, registerRequestHandler, registerStaticRequestHandler, unregisterRequestHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationRequestHandler

public ApplicationRequestHandler(HandlerContext handlerContext,
                                 Controller application,
                                 boolean trapBack)
Method Detail

getApplication

public Controller getApplication()

handleRequest

public void handleRequest(Request request)

registerCallBack

public java.lang.Integer registerCallBack(CallBack action)
Specified by:
registerCallBack in class RenderableRequestHandler

registerActionCallBack

public java.lang.Integer registerActionCallBack(CallBack action)
Specified by:
registerActionCallBack in class RenderableRequestHandler

registerBackActionCallBack

public void registerBackActionCallBack(CallBack action)
Specified by:
registerBackActionCallBack in class RenderableRequestHandler

registerDependentRequestHandler

public java.lang.String registerDependentRequestHandler(RequestHandler dependentRequestHandler)
Specified by:
registerDependentRequestHandler in class RenderableRequestHandler

nextId

public java.lang.String nextId()
Specified by:
nextId in class RenderableRequestHandler

pushPathInfo

public void pushPathInfo(java.lang.String pathInfo)

popPathInfo

public void popPathInfo()

setSessionAttribute

public void setSessionAttribute(java.lang.String key,
                                java.lang.Object attribute)

getSessionAttribute

public java.lang.Object getSessionAttribute(java.lang.String key)

isUserInRole

public boolean isUserInRole(java.lang.String role)

isPathInfoEmpty

public boolean isPathInfoEmpty()

getUploadedFile

public UploadedFile getUploadedFile(java.lang.String key)