@ Nullable @ DevelopersNote ( "This is only for project-internal use!" ) public static ISessionWebScope internalGetSessionScope ( @ Nullable final IRequestWebScope aRequestScope , final boolean bCreateIfNotExisting , final boolean bItsOkayToCreateANewSession ) { // Try to to resolve the current request scope if ( aRequestScope != null ) { // Check if we have an HTTP session object final HttpSession aHttpSession = aRequestScope . getSession ( bCreateIfNotExisting ) ; if ( aHttpSession != null ) return internalGetOrCreateSessionScope ( aHttpSession , bCreateIfNotExisting , bItsOkayToCreateANewSession ) ; } else { // If we want a session scope, we expect the return value to be non-null! if ( bCreateIfNotExisting ) throw new IllegalStateException ( "No request scope is present, so no session scope can be retrieved!" ) ; } return null ; }
Get the session scope of the provided request scope .