faa.tg.desiree
Class DesireePluginService

java.lang.Object
  extended by desiree.JavaComponent.PlugIn
      extended by faa.tg.desiree.DesireePluginService
All Implemented Interfaces:
java.lang.Runnable

public class DesireePluginService
extends desiree.JavaComponent.PlugIn
implements java.lang.Runnable

DesireePluginService provides a command interface for DESRIEE AVMessagescommands. See the source: DesireePluginService.java

Version:
$Id: DesireePluginService.java,v 1.1 2002/10/04 20:24:19 warb Exp $
Author:
Dan Warburton, FAA/ACB-860

Field Summary
(package private)  java.io.BufferedReader br
           
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  Host host
           
(package private)  java.io.OutputStream output
           
private  Port port
           
private  java.net.Socket socket
           
 
Constructor Summary
DesireePluginService()
          Constructor for the DesireePluginService object
 
Method Summary
private  void makeConnection()
          get socket connection to the host and port
private  void processMsgFromTgf(java.lang.String line)
          convert xml message into av message then send to desiree
 void run()
          Main processing method for the DesireePluginService object
private  void writeMessage(XmlAvMessage xmlAvMessage)
          Helper method to write data out to desiree stream
 
Methods inherited from class desiree.JavaComponent.PlugIn
PostOption, ReadBulletinBoard, ReadOption, Register, Send, Send, SendAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

br

java.io.BufferedReader br

output

java.io.OutputStream output

port

private Port port

host

private Host host

socket

private java.net.Socket socket
Constructor Detail

DesireePluginService

public DesireePluginService()
Constructor for the DesireePluginService object

Method Detail

writeMessage

private void writeMessage(XmlAvMessage xmlAvMessage)
Helper method to write data out to desiree stream

Parameters:
xmlAvMessage - Description of the Parameter

run

public void run()
Main processing method for the DesireePluginService object

Specified by:
run in interface java.lang.Runnable

processMsgFromTgf

private void processMsgFromTgf(java.lang.String line)
                        throws java.io.IOException
convert xml message into av message then send to desiree

Parameters:
line - xml string to be converted to av message
Throws:
java.io.IOException

makeConnection

private void makeConnection()
get socket connection to the host and port