public static SharedFlowController getSharedFlow ( String sharedFlowClassName , HttpServletRequest request , ServletContext servletContext ) { StorageHandler sh = Handlers . get ( servletContext ) . getStorageHandler ( ) ; HttpServletRequest unwrappedRequest = unwrapMultipart ( request ) ; RequestContext rc = new RequestContext ( unwrappedRequest , null ) ; String attrName = ScopedServletUtils . getScopedSessionAttrName ( InternalConstants . SHARED_FLOW_ATTR_PREFIX + sharedFlowClassName , request ) ; SharedFlowController sf = ( SharedFlowController ) sh . getAttribute ( rc , attrName ) ; if ( sf != null ) { sf . reinitializeIfNecessary ( request , null , servletContext ) ; } return sf ; }
Get the shared flow with the given class name .