Package ca.uhn.hl7v2.llp
Class LowerLayerProtocol
java.lang.Object
ca.uhn.hl7v2.llp.LowerLayerProtocol
- Direct Known Subclasses:
ExtendedMinLowerLayerProtocol,MinLowerLayerProtocol
Represents a particular "lower layer protocol" over which HL7 messages can be
sent. An example is the "minimal lower layer protocol" defines in the HL7
implementation guide (appendix C) - this is implemented by the class
MinLowerLayerProtocol. Implementations should call the static method
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).- Author:
- Bryan Tripp
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract HL7ReadergetReader(InputStream in) Returns an HL7Reader that implements message reading according to this protocol.abstract HL7WritergetWriter(OutputStream out) Returns an HL7Writer that implements message writing according to this protocol.static voidlogCharacterReceived(int c) Logs the fact that a character has been received, if configured to do so.static LowerLayerProtocolmakeLLP()Deprecated.static LowerLayerProtocolmakeLLP(boolean respectMSH18) Returns a particular implementation of LowerLayerProtocolvoidsetCharset(String charsetName) Provides a charset to use for character encodingvoidsetCharset(Charset theCharset) Provides a charset to use for character encoding
-
Field Details
-
charset
-
-
Constructor Details
-
LowerLayerProtocol
public LowerLayerProtocol()
-
-
Method Details
-
makeLLP
Deprecated.as there is now the choice betweenMinLowerLayerProtocolandExtendedMinLowerLayerProtocol.Returns a particular implementation of LowerLayerProtocol. -
makeLLP
Returns a particular implementation of LowerLayerProtocol- Parameters:
respectMSH18-- Returns:
- LowerLayerProtocol implementation
-
getReader
Returns an HL7Reader that implements message reading according to this protocol.- Throws:
LLPException
-
getWriter
Returns an HL7Writer that implements message writing according to this protocol.- Throws:
LLPException
-
logCharacterReceived
Logs the fact that a character has been received, if configured to do so.
This logging is enabled by configuring the underlying log system to allow the logger named "
ca.uhn.hl7v2.llp.LowerLayerProtocol" to log events at a level of "trace". -
setCharset
Provides a charset to use for character encoding- Parameters:
theCharset- The charset to use- Since:
- 1.3
-
setCharset
Provides a charset to use for character encoding- Parameters:
charsetName- The name of the charset to use- Since:
- 2.1
-
MinLowerLayerProtocolandExtendedMinLowerLayerProtocol.