public static void checkFapLevel ( HandshakeProperties handShakeProps , short fapLevel ) throws SIIncorrectCallException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "checkFapLevel" , "" + fapLevel ) ; short actualFapVersion = handShakeProps . getFapLevel ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Actual FAP Level: " , "" + actualFapVersion ) ; if ( fapLevel > actualFapVersion ) { throw new SIIncorrectCallException ( nls . getFormattedMessage ( "CALL_NOT_SUPPORTED_AT_FAP_LEVEL_SICO0101" , new Object [ ] { "" + actualFapVersion } , "CALL_NOT_SUPPORTED_AT_FAP_LEVEL_SICO0101" ) ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "checkFapLevel" ) ; }
This method is used on API calls when checking to see if the call is supported for the current FAP level . Before making a call in a method that is only supported in a particular FAP version call this method passing in the lowest FAP version this method is supported in . If the current negotiated FAP version is lower than this then an SIIncorrectCallException will be thrown .