mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/comms/PhysicalLinkMessageService.java
private Message removePhysicalLink(final PhysicalLinkNamespace physicalLinkMessage, 
        final TerraHarvestMessage request, final RemoteChannel channel) throws IOException
    {
        final DeleteRequestData removePhysicalLink = DeleteRequestData.parseFrom(physicalLinkMessage.getData());

        final UUID physicalUuid = SharedMessageUtils.convertProtoUUIDtoUUID(
                removePhysicalLink.getPhysicalLinkUuid());
        
        final String errorMessage = "RemovePhysicalLink: Cannot remove physical link. ";
        try
        {
            final String pLinkName = m_CommsService.getPhysicalLinkName(physicalUuid);
            m_CommsService.deletePhysicalLink(pLinkName);
            m_MessageFactory.createPhysicalLinkResponseMessage(request, 
                PhysicalLinkMessageType.DeleteResponse, null).queue(channel);
        }
        catch (final CCommException e)
        {
            m_Logging.error(e, errorMessage);
            
            m_MessageFactory.createBaseErrorMessage(request, 
                    ErrorCode.CCOMM_ERROR, errorMessage + e.getMessage()).queue(channel);
        }
        return removePhysicalLink;
    }
/**
     * Method to remove a {@link mil.dod.th.core.ccomm.physical.PhysicalLink}, given a UUID from the ccommsMessage.
     * @param physicalLinkMessage
     *      request message containing the UUID of the physical link to remove.
     * @param request
     *      entire remote message for the request
     * @param channel
     *      channel to use for sending a response
     * @return
     *      the data message for this request
     * @throws IOException
     *      if message cannot be parsed or response message cannot be sent
     */
Method to remove a  mil.dod.th.core.ccomm.physical.PhysicalLink, given a UUID from the ccommsMessage.
@param physicalLinkMessage
request message containing the UUID of the physical link to remove.
@param request
entire remote message for the request
@param channel
channel to use for sending a response
@return
the data message for this request
@throws IOException
if message cannot be parsed or response message cannot be sent
Method to remove a mil . dod . th . core . ccomm . physical . PhysicalLink given a UUID from the ccommsMessage . @param physicalLinkMessage request message containing the UUID of the physical link to remove . @param request entire remote message for the request @param channel channel to use for sending a response @return the data message for this request @throws IOException if message cannot be parsed or response message cannot be sent
private Message removePhysicalLink(final PhysicalLinkNamespace physicalLinkMessage, 
        final TerraHarvestMessage request, final RemoteChannel channel) throws IOException
    {
        final DeleteRequestData removePhysicalLink = DeleteRequestData.parseFrom(physicalLinkMessage.getData());
        final UUID physicalUuid = SharedMessageUtils.convertProtoUUIDtoUUID(
                removePhysicalLink.getPhysicalLinkUuid());
        final String errorMessage = "RemovePhysicalLink: Cannot remove physical link. ";
        try
        {
            final String pLinkName = m_CommsService.getPhysicalLinkName(physicalUuid);
            m_CommsService.deletePhysicalLink(pLinkName);
            m_MessageFactory.createPhysicalLinkResponseMessage(request, 
                PhysicalLinkMessageType.DeleteResponse, null).queue(channel);
        }
        catch (final CCommException e)
        {
            m_Logging.error(e, errorMessage);
            m_MessageFactory.createBaseErrorMessage(request, 
                    ErrorCode.CCOMM_ERROR, errorMessage + e.getMessage()).queue(channel);
        }
        return removePhysicalLink;
    }
private Message removePhysicalLink ( final PhysicalLinkNamespace physicalLinkMessage , final TerraHarvestMessage request , final RemoteChannel channel ) throws IOException { final DeleteRequestData removePhysicalLink = DeleteRequestData . parseFrom ( physicalLinkMessage . getData ( ) ) ; final UUID physicalUuid = SharedMessageUtils . convertProtoUUIDtoUUID ( removePhysicalLink . getPhysicalLinkUuid ( ) ) ; final String errorMessage = "RemovePhysicalLink: Cannot remove physical link. " ; try { final String pLinkName = m_CommsService . getPhysicalLinkName ( physicalUuid ) ; m_CommsService . deletePhysicalLink ( pLinkName ) ; m_MessageFactory . createPhysicalLinkResponseMessage ( request , PhysicalLinkMessageType . DeleteResponse , null ) . queue ( channel ) ; } catch ( final CCommException e ) { m_Logging . error ( e , errorMessage ) ; m_MessageFactory . createBaseErrorMessage ( request , ErrorCode . CCOMM_ERROR , errorMessage + e . getMessage ( ) ) . queue ( channel ) ; } return removePhysicalLink ; }
Method to remove a {@link mil.dod.th.core.ccomm.physical.PhysicalLink}, given a UUID from the ccommsMessage.
Method to remove a { @link mil . dod . th . core . ccomm . physical . PhysicalLink } given a UUID from the ccommsMessage .