mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/mp/MissionProgrammingMessageService.java
private Message removeMissionProgram(final TerraHarvestMessage message, 
        final MissionProgrammingNamespace missionMessage, final RemoteChannel channel) throws IOException
    {
        //parse the request message
        final RemoveMissionProgramRequestData request = 
                RemoveMissionProgramRequestData.parseFrom(missionMessage.getData());
        
        //get the program name
        final String programName = request.getMissionName();
        
        //get the program
        final Program program = m_Manager.getProgram(programName);
        
        //request removal
        program.remove();
        
        //send response
        final RemoveMissionProgramResponseData response = RemoveMissionProgramResponseData.newBuilder().
                setMissionName(programName).build();
        m_MessageFactory.createMissionProgrammingResponseMessage(message, 
                MissionProgrammingMessageType.RemoveMissionProgramResponse, response).queue(channel);
        return request;
    }
/**
     * Handle the request to remove a mission program.
     * @param message
     *     original request message that contains all information needed to complete the request
     * @param missionMessage
     *     the mission program message that contains data
     * @param channel
     *     the channel from which the request was received
     * @return
     *     the parsed data message
     * @throws IOException
     *     thrown in the event that an error is experienced while attempting to send the response message 
     */
Handle the request to remove a mission program.
Handle the request to remove a mission program .
private Message removeMissionProgram(final TerraHarvestMessage message, 
        final MissionProgrammingNamespace missionMessage, final RemoteChannel channel) throws IOException
    {
        final RemoveMissionProgramRequestData request = 
                RemoveMissionProgramRequestData.parseFrom(missionMessage.getData());
        final String programName = request.getMissionName();
        final Program program = m_Manager.getProgram(programName);
        program.remove();
        final RemoveMissionProgramResponseData response = RemoveMissionProgramResponseData.newBuilder().
                setMissionName(programName).build();
        m_MessageFactory.createMissionProgrammingResponseMessage(message, 
                MissionProgrammingMessageType.RemoveMissionProgramResponse, response).queue(channel);
        return request;
    }
private Message removeMissionProgram ( final TerraHarvestMessage message , final MissionProgrammingNamespace missionMessage , final RemoteChannel channel ) throws IOException { final RemoveMissionProgramRequestData request = RemoveMissionProgramRequestData . parseFrom ( missionMessage . getData ( ) ) ; final String programName = request . getMissionName ( ) ; final Program program = m_Manager . getProgram ( programName ) ; program . remove ( ) ; final RemoveMissionProgramResponseData response = RemoveMissionProgramResponseData . newBuilder ( ) . setMissionName ( programName ) . build ( ) ; m_MessageFactory . createMissionProgrammingResponseMessage ( message , MissionProgrammingMessageType . RemoveMissionProgramResponse , response ) . queue ( channel ) ; return request ; }
Handle the request to remove a mission program.
Handle the request to remove a mission program .
//parse the request message //get the program name //get the program //request removal //send response