java/protoCtrl/src/main/java/com/pravala/protocol/ctrl/SocketMessageManager.java
private void dispatch ( Message baseMessage )
    {
        final Integer msgType = baseMessage.getType();

        if ( msgType == null )
        {
            return;
        }

        if ( msgType.equals ( SimpleSubscriptionResponse.DEF_TYPE ) )
        {
            Log.v ( TAG, "Received a SimpleSubscriptionResponse; Trying to deserialize" );

            try
            {
                dispatchSimpleSubResponse ( simpleSubResponseMsg.generate ( baseMessage ) );
            }
            catch ( CodecException e )
            {
                Log.e ( TAG, "Protocol.CodecException while handling a "
                           + "SimpleSubscriptionResponse message; Error: " + e );
            }
            return;
        }
        else
        {
            dispatchDirectly ( baseMessage, false );
        }
    }
/**
     * Decodes the message to its particular message and dispatches it to callbacks...
     *
     * @param baseMessage The general message that buffers the serialised message data.
     */
Decodes the message to its particular message and dispatches it to callbacks
@param baseMessage The general message that buffers the serialised message data.
Decodes the message to its particular message and dispatches it to callbacks @param baseMessage The general message that buffers the serialised message data .
private void dispatch ( Message baseMessage )
    {
        final Integer msgType = baseMessage.getType();
        if ( msgType == null )
        {
            return;
        }
        if ( msgType.equals ( SimpleSubscriptionResponse.DEF_TYPE ) )
        {
            Log.v ( TAG, "Received a SimpleSubscriptionResponse; Trying to deserialize" );
            try
            {
                dispatchSimpleSubResponse ( simpleSubResponseMsg.generate ( baseMessage ) );
            }
            catch ( CodecException e )
            {
                Log.e ( TAG, "Protocol.CodecException while handling a "
                           + "SimpleSubscriptionResponse message; Error: " + e );
            }
            return;
        }
        else
        {
            dispatchDirectly ( baseMessage, false );
        }
    }
private void dispatch ( Message baseMessage ) { final Integer msgType = baseMessage . getType ( ) ; if ( msgType == null ) { return ; } if ( msgType . equals ( SimpleSubscriptionResponse . DEF_TYPE ) ) { Log . v ( TAG , "Received a SimpleSubscriptionResponse; Trying to deserialize" ) ; try { dispatchSimpleSubResponse ( simpleSubResponseMsg . generate ( baseMessage ) ) ; } catch ( CodecException e ) { Log . e ( TAG , "Protocol.CodecException while handling a " + "SimpleSubscriptionResponse message; Error: " + e ) ; } return ; } else { dispatchDirectly ( baseMessage , false ) ; } }
Decodes the message to its particular message and dispatches it to callbacks...
 @param baseMessage The general message that buffers the serialised message data.
Decodes the message to its particular message and dispatches it to callbacks ... @param baseMessage The general message that buffers the serialised message data .