private void rejectHandshake ( Conversation conversation , int requestNumber , String rejectedField ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "rejectHandshake" , new Object [ ] { conversation , requestNumber , rejectedField } ) ; SIConnectionLostException exception = new SIConnectionLostException ( nls . getFormattedMessage ( "INVALID_PROP_SICO8012" , null , null ) ) ; FFDCFilter . processException ( exception , CLASS_NAME + ".rejectHandshake" , CommsConstants . COMMONSERVERRECEIVELISTENER_HSREJCT_01 , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( this , tc , "Invalid handshake type received - rejecting field:" , rejectedField ) ; StaticCATHelper . sendExceptionToClient ( exception , CommsConstants . COMMONSERVERRECEIVELISTENER_HSREJCT_01 , conversation , requestNumber ) ; // At this point we really don't want anything more to do with this client - so close him closeConnection ( conversation ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "rejectHandshake" ) ; }
This method is used to inform the client that we are rejecting their handshake . Typically this will never happen unless a third party client is written or an internal error occurs . However we should check for an inproperly formatted handshake and inform the client if such an error occurs .