protected BinaryResourcesHandler getBinaryResourcesHandler ( FacesContext context ) { // Generate the path for the image element BinaryResourcesHandler binaryRsHandler = ( BinaryResourcesHandler ) context . getExternalContext ( ) . getApplicationMap ( ) . get ( JawrConstant . BINARY_CONTEXT_ATTRIBUTE ) ; if ( binaryRsHandler == null ) { throw new IllegalStateException ( "You are using a Jawr image tag while the Jawr Binary servlet has not been initialized. Initialization of Jawr Binary servlet either failed or never occurred." ) ; } return binaryRsHandler ; }
Returns the image resource handler