src/net/java/sip/communicator/impl/protocol/jabber/OperationSetExtendedAuthorizationsJabberImpl.java
/**
     * Send an authorization request, requesting <tt>contact</tt> to add them
     * to our contact list?
     *
     * @param request the <tt>AuthorizationRequest</tt> that we'd like the
     * protocol provider to send to <tt>contact</tt>.
     * @param contact the <tt>Contact</tt> who we'd be asking for an
     * authorization.
     * @throws OperationFailedException if we fail sending the authorization
     * request.
     */


@param request the AuthorizationRequest that we'd like the
protocol provider to send to contact.
@param contact the Contact who we'd be asking for an
authorization.
@throws OperationFailedException if we fail sending the authorization
request.
@param request the AuthorizationRequest that we ' d like the protocol provider to send to contact . @param contact the Contact who we ' d be asking for an authorization . @throws OperationFailedException if we fail sending the authorization request .
public void reRequestAuthorization(AuthorizationRequest request,
                                       Contact contact)
        throws
        OperationFailedException
    {
        opSetPersPresence.assertConnected();
        if( !(contact instanceof ContactJabberImpl) )
            throw new IllegalArgumentException(
                "The specified contact is not an jabber contact." +
                    contact);
        Presence responsePacket = new Presence(Presence.Type.subscribe);
        responsePacket.setTo(((ContactJabberImpl) contact).getAddressAsJid());
        try
        {
            parentProvider.getConnection().sendStanza(responsePacket);
        }
        catch (NotConnectedException | InterruptedException e)
        {
            throw new OperationFailedException(
                "Could not send subscribe packet",
                OperationFailedException.NETWORK_FAILURE,
                e
            );
        }
    }
public void reRequestAuthorization ( AuthorizationRequest request , Contact contact ) throws OperationFailedException { opSetPersPresence . assertConnected ( ) ; if ( ! ( contact instanceof ContactJabberImpl ) ) throw new IllegalArgumentException ( "The specified contact is not an jabber contact." + contact ) ; Presence responsePacket = new Presence ( Presence . Type . subscribe ) ; responsePacket . setTo ( ( ( ContactJabberImpl ) contact ) . getAddressAsJid ( ) ) ; try { parentProvider . getConnection ( ) . sendStanza ( responsePacket ) ; } catch ( NotConnectedException | InterruptedException e ) { throw new OperationFailedException ( "Could not send subscribe packet" , OperationFailedException . NETWORK_FAILURE , e ) ; } }
Send an authorization request, requesting <tt>contact</tt> to add them
 to our contact list?
Send an authorization request requesting <tt > contact< / tt > to add them to our contact list?