src/net/java/sip/communicator/impl/protocol/sip/OperationSetDesktopSharingServerSipImpl.java
/**
         * Notifies this <tt>Subscription</tt> that a <tt>Response</tt> to a
         * previous SUBSCRIBE <tt>Request</tt> has been received with a status
         * code in the success range and it may process the status code carried
         * in it.
         *
         * @param responseEvent
         *            the <tt>ResponseEvent</tt> carrying the full details of
         *            the received <tt>Response</tt> including the status code
         *            which may be processed by this <tt>Subscription</tt>
         * @param statusCode
         *            the status code carried in the <tt>Response</tt> and
         *            extracted from the specified <tt>ResponseEvent</tt> for
         *            the convenience of the implementers
         * @see EventPackageSubscriber.Subscription#processSuccessResponse(
         * ResponseEvent, int)
         */
Notifies this Subscription that a Response to a
previous SUBSCRIBE Request has been received with a status
code in the success range and it may process the status code carried
in it.

@param responseEvent
the ResponseEvent carrying the full details of
the received Response including the status code
which may be processed by this Subscription
@param statusCode
the status code carried in the Response and
extracted from the specified ResponseEvent for
the convenience of the implementers
@see EventPackageSubscriber.Subscription#processSuccessResponse(
ResponseEvent, int)
Notifies this Subscription that a Response to a previous SUBSCRIBE Request has been received with a status code in the success range and it may process the status code carried in it . @param responseEvent the ResponseEvent carrying the full details of the received Response including the status code which may be processed by this Subscription @param statusCode the status code carried in the Response and extracted from the specified ResponseEvent for the convenience of the implementers @see EventPackageSubscriber . Subscription#processSuccessResponse ( ResponseEvent int )
@Override
        protected void processSuccessResponse(ResponseEvent responseEvent,
                int statusCode)
        {
            switch (statusCode)
            {
            case Response.OK:
            case Response.ACCEPTED:
                /* we have succeeded to subscribe to remote peer */
                remoteControlEnabled = true;
                break;
            }
        }
@ Override protected void processSuccessResponse ( ResponseEvent responseEvent , int statusCode ) { switch ( statusCode ) { case Response . OK : case Response . ACCEPTED : /* we have succeeded to subscribe to remote peer */ remoteControlEnabled = true ; break ; } }
Notifies this <tt>Subscription</tt> that a <tt>Response</tt> to a
 previous SUBSCRIBE <tt>Request</tt> has been received with a status
 code in the success range and it may process the status code carried
 in it.
Notifies this <tt > Subscription< / tt > that a <tt > Response< / tt > to a previous SUBSCRIBE <tt > Request< / tt > has been received with a status code in the success range and it may process the status code carried in it .