@@ -0,0 +1,2738 @@
+/*%0A * @#IntraUserStablishedRequestedNetworkServiceConnectionHandler.java - 2015%0A * Copyright bitDubai.com., All rights reserved.%0A%C2%A0* You may not modify, use, reproduce or distribute this software.%0A * BITDUBAI/CONFIDENTIAL%0A */%0Apackage com.bitdubai.fermat_dmp_plugin.layer.network_service.intra_user.developer.bitdubai.version_1.event_handlers;%0A%0Aimport com.bitdubai.fermat_api.Service;%0Aimport com.bitdubai.fermat_api.layer.all_definition.enums.ServiceStatus;%0Aimport com.bitdubai.fermat_api.layer.all_definition.event.PlatformEvent;%0Aimport com.bitdubai.fermat_api.layer.dmp_network_service.intra_user.IntraUserManager;%0Aimport com.bitdubai.fermat_api.layer.pip_platform_service.event_manager.EventHandler;%0Aimport com.bitdubai.fermat_dmp_plugin.layer.network_service.intra_user.developer.bitdubai.version_1.structure.IntraUserNetworkServiceManager;%0Aimport com.bitdubai.fermat_p2p_api.layer.p2p_communication.cloud_server.events.EstablishedNetworkServiceConnectionEvent;%0A%0A/**%0A * The Class %3Ccode%3Ecom.bitdubai.fermat_dmp_plugin.layer.network_service.intra_user.developer.bitdubai.version_1.event_handlers.IntraUserEstablishedRequestedNetworkServiceConnectionHandler%3C/code%3E%0A * is work when a new connection was stablished between two network services%3Cp/%3E%0A *%0A * Created by Roberto Requena - (rart3001@gmail.com) on 24/06/15.%0A *%0A * @version 1.0%0A * @since Java JDK 1.7%0A */%0Apublic class IntraUserEstablishedRequestedNetworkServiceConnectionHandler implements EventHandler %7B%0A%0A    /*%0A    * Represent the intraUserManager%0A    */%0A    private IntraUserManager intraUserManager;%0A%0A    /**%0A     * Constructor with parameter%0A     *%0A     * @param intraUserManager the Intra User Manager%0A     */%0A    public IntraUserEstablishedRequestedNetworkServiceConnectionHandler(IntraUserManager intraUserManager) %7B%0A        this.intraUserManager = intraUserManager;%0A    %7D%0A%0A    /**%0A     * (non-Javadoc)%0A     *%0A     * @see EventHandler#handleEvent(PlatformEvent)%0A     *%0A     * @param platformEvent the platform event%0A     * @throws Exception the exception%0A     */%0A    @Override%0A    public void handleEvent(PlatformEvent platformEvent) throws Exception %7B%0A%0A        if (((Service) this.intraUserManager).getStatus() == ServiceStatus.STARTED) %7B%0A%0A            /*%0A             *  IntraUserManager make the job%0A             */%0A            EstablishedNetworkServiceConnectionEvent stablishedNetworkServiceConnectionEvent = (EstablishedNetworkServiceConnectionEvent) platformEvent;%0A            ((IntraUserNetworkServiceManager) this.intraUserManager).handleEstablishedRequestedNetworkServiceConnection(stablishedNetworkServiceConnectionEvent.getCommunicationChannels(),%0A                    stablishedNetworkServiceConnectionEvent.getRemoteNetworkServicePublicKey());%0A%0A        %7D%0A    %7D%0A%7D%0A

Add new class IntraUserEstablishedRequestedNetworkServiceConnectionHandler