@ Override public void setMessageType ( char indicationType ) throws IllegalArgumentException { /* * old TURN DATA indication type is an indication despite 0x0115 & * 0x0110 indicates STUN error response type */ if ( ! isIndicationType ( indicationType ) && indicationType != StunMessage . OLD_DATA_INDICATION ) { throw new IllegalArgumentException ( ( int ) ( indicationType ) + " - is not a valid indication type." ) ; } super . setMessageType ( indicationType ) ; }
Checks whether indicationType is a valid indication type and if yes sets it as the type of this instance .