public boolean isFlowRequest ( ) { GrailsApplication application = getAttributes ( ) . getGrailsApplication ( ) ; Object controllerClassObject = getControllerClass ( ) ; GrailsControllerClass controllerClass = null ; if ( controllerClassObject instanceof GrailsControllerClass ) { controllerClass = ( GrailsControllerClass ) controllerClassObject ; } if ( controllerClass == null ) return false ; String actionName = getActionName ( ) ; if ( actionName == null ) actionName = controllerClass . getDefaultAction ( ) ; if ( actionName == null ) return false ; return false ; }
Returns true if the current executing request is a flow request