public abstract class LowerLayerProtocol extends Object
logCharacterReceived() when a character is read from a remote system.
This method may or may not log receipt, as configured (see docs for this method).| Constructor and Description |
|---|
LowerLayerProtocol() |
| Modifier and Type | Method and Description |
|---|---|
abstract HL7Reader |
getReader(InputStream in)
Returns an HL7Reader that implements message reading according to
this protocol.
|
abstract HL7Writer |
getWriter(OutputStream out)
Returns an HL7Writer that implements message writing according to
this protocol.
|
static void |
logCharacterReceived(int c)
Logs the fact that a character has been received, if configured to do so.
|
static LowerLayerProtocol |
makeLLP()
Deprecated.
as there is now the choice between
MinLowerLayerProtocol
and ExtendedMinLowerLayerProtocol. |
public LowerLayerProtocol()
public static LowerLayerProtocol makeLLP()
MinLowerLayerProtocol
and ExtendedMinLowerLayerProtocol.public abstract HL7Reader getReader(InputStream in) throws LLPException
LLPExceptionpublic abstract HL7Writer getWriter(OutputStream out) throws LLPException
LLPExceptionpublic static void logCharacterReceived(int c)
Logs the fact that a character has been received, if configured to do so. This is a debugging feature. This is enabled by setting the system property ca.uhn.hl7v2.llp.logBytesRead=TRUE (before LowerLayerProtocol is instantiated). A message is logged for each character. THIS IS VERY SLOW and should normally be turned off.
Note that as of HAPI 1.3, this will be logged using commons-logging at a level of "info" instead of being printed to System.out
Copyright © 2001-2013 University Health Network. All Rights Reserved.