|
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.merge.HL7.HL7SocketConfiguration
public class HL7SocketConfiguration
The HL7SocketConfiguration class contains communication configuration for HL7 message receivers and transmitters.
The fields of this class are initialized either from a configuration file, from a Properties object, from values directly passed to one of the constructors or from the toolkit properties.
The following properties are recognized:
hostName
portNumber
sendTimeout
receiveTimeout
autoSenseInterval
autoSenseReceiveEndSequence
transmitStartSequence
transmitEndSequence
receiveEndSequence
sendPacingInterval
characterEncoding
formatter, containing a class name that implements the
HL7ReceiverFormatter interface.
HL7Receiver| Field Summary | |
|---|---|
int |
autoSenseInterval
Specifies the time interval, in milliseconds, to wait for the Receive End Sequence marker when receiving messages. |
boolean |
autoSenseReceiveEndSequence
This field indicates whether the toolkit will detect a different Receive End Sequence value by waiting for autoSenseInterval milliseconds
for the specified Receive End Sequence. |
java.lang.String |
characterEncoding
The Java character set to use for encoding messages sent and decoding messages received. |
HL7Formatter |
formatter
An HL7Formatter instance used to format received and sent raw data. |
java.lang.String |
hostName
The Socket's host name. |
int |
portNumber
The socket port number. |
java.lang.String |
receiveEndSequence
Specifies the Receive End Sequence, the sequence of bytes that mark the end of an HL7 data unit when receiving. |
int |
receiveTimeout
The socket's receive inactivity timeout in seconds. |
int |
sendPacingInterval
Specifies the minimum amount of time in milliseconds between two sent messages on the same connection. |
int |
sendTimeout
The socket's send inactivity timeout specified in seconds. |
java.lang.String |
transmitEndSequence
Specifies the Transmit End Sequence, the sequence of bytes that mark the end of an HL7 transmission. |
java.lang.String |
transmitStartSequence
Specifies the Transmit Start Sequence, the sequence of bytes that mark the beginning of an HL7 transmission. |
| Constructor Summary | |
|---|---|
HL7SocketConfiguration()
Initializes a new HL7 socket configuration object using values from the toolkit properties. |
|
HL7SocketConfiguration(java.util.Properties props)
Initializes a new HL7 socket configuration object using values read from a Properties object. |
|
HL7SocketConfiguration(java.lang.String configFile)
Initializes a new HL7 socket configuration object using values read from a configuration file. |
|
HL7SocketConfiguration(java.lang.String hostName,
int port)
Initializes a new HL7 socket configuration object using the specified host name and port number. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
Provides the description of the fields in this socket configuration object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String hostName
public final int portNumber
public final int sendTimeout
public final int receiveTimeout
public final java.lang.String transmitStartSequence
public final java.lang.String transmitEndSequence
public final java.lang.String receiveEndSequence
public final int autoSenseInterval
autoSenseReceiveEndSequence field is true the toolkit
will consider the received message complete.
The receive timeout interval must be greater than the auto sense interval.
The default auto sense interval is 2000 (2 seconds).
public final boolean autoSenseReceiveEndSequence
autoSenseInterval milliseconds
for the specified Receive End Sequence. The default is false.
public final int sendPacingInterval
public final HL7Formatter formatter
public final java.lang.String characterEncoding
| Constructor Detail |
|---|
public HL7SocketConfiguration()
public HL7SocketConfiguration(java.lang.String hostName,
int port)
hostName - The socket's host name.port - The port number to listen on or connect to.
HL7Exception - If the parameters or configuration fail validation.public HL7SocketConfiguration(java.lang.String configFile)
See the class description for a list of property names.
configFile - The path to the configuration file.
HL7Exception - If the parameters or configuration fail validation.public HL7SocketConfiguration(java.util.Properties props)
See the class description for a list of property names.
props - A Properties object containing socket configuration values.
HL7Exception - If the parameters or configuration fail validation.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
|
Copyright © 2009 Merge Healthcare Inc. All Rights Reserved. | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||