|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.app.Receiver
public class Receiver
Listens for incoming messages on a certain input stream, and sends them to the appropriate location.
Constructor Summary | |
---|---|
Receiver(Connection c,
HL7Reader in)
Creates a new instance of Receiver, associated with the given Connection |
Method Summary | |
---|---|
protected void |
processMessage(java.lang.String message)
Processes a single incoming message by sending it to the appropriate internal location. |
void |
run()
Loops continuously, reading messages and calling processMessage() until stop() is called. |
void |
start()
Starts the Receiver in a new thread |
void |
stop()
Stops the Receiver after the next message is read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Receiver(Connection c, HL7Reader in)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
protected void processMessage(java.lang.String message)
public void start()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |