com.merge.HL7
Class HL7ReceiverConfiguration

java.lang.Object
  extended by com.merge.HL7.HL7SocketConfiguration
      extended by com.merge.HL7.HL7ReceiverConfiguration

public class HL7ReceiverConfiguration
extends HL7SocketConfiguration

Represents the configuration of a message receiver service.

The fields of this class are initialized either from a configuration file, from a Properties object, from values directly passed to the constructors or from the toolkit properties.

Additionally to the base classes properties, the following properties are recognized:

See Also:
HL7Receiver

Field Summary
 java.lang.String allowIPs
          The comma separated list of IP addresses to accept connections from.
 java.lang.String blockIPs
          A comma separated list of IP addresses to reject connections from.
 int connectionBackLog
          The maximum queue length for incoming connection indications.
 
Fields inherited from class com.merge.HL7.HL7SocketConfiguration
autoSenseInterval, autoSenseReceiveEndSequence, characterEncoding, formatter, hostName, portNumber, receiveEndSequence, receiveTimeout, sendPacingInterval, sendTimeout, transmitEndSequence, transmitStartSequence
 
Constructor Summary
HL7ReceiverConfiguration(int portNumber)
          Initializes a new receiver configuration instance using the specified port number.
HL7ReceiverConfiguration(java.util.Properties props)
          Initializes a new receiver configuration instance using values read from a Properties object.
HL7ReceiverConfiguration(java.lang.String configFile)
          Initializes a new receiver configuration instance using values read from a configuration file.
 
Method Summary
 java.lang.String toString()
          Provides the string representation of this receiver configuration containing the value of all fields.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connectionBackLog

public final int connectionBackLog
The maximum queue length for incoming connection indications. If a connection indication arrives when the queue is full, the connection is refused. The default queue length is 50.


blockIPs

public final java.lang.String blockIPs
A comma separated list of IP addresses to reject connections from. By default no IP addresses are blocked.


allowIPs

public final java.lang.String allowIPs
The comma separated list of IP addresses to accept connections from. By default the value of this field is an empty string meaning that all IP addresses are accepted.

Constructor Detail

HL7ReceiverConfiguration

public HL7ReceiverConfiguration(int portNumber)
Initializes a new receiver configuration instance using the specified port number. Other values are read from the toolkit properties. If a value is not specified in the toolkit properties, the default value is used instead.

Parameters:
portNumber - The port number of the listener.

HL7ReceiverConfiguration

public HL7ReceiverConfiguration(java.lang.String configFile)
Initializes a new receiver configuration instance using values read from a configuration file. The configuration file is in the format required by the Properties class. Values that are not specified in the configuration file are read from the toolkit properties or if missing from the toolkit properties the default values are used.

See the class description for a list of property names.

Parameters:
configFile - The path to the configuration file.

HL7ReceiverConfiguration

public HL7ReceiverConfiguration(java.util.Properties props)
Initializes a new receiver configuration instance using values read from a Properties object. Values that are not specified in the provided Properties object are read from the toolkit properties or if missing from the toolkit properties the default values are used.

See the class description for a list of property names.

Parameters:
props - A Properties object containing receiver configuration values.
Method Detail

toString

public java.lang.String toString()
Provides the string representation of this receiver configuration containing the value of all fields.

Overrides:
toString in class HL7SocketConfiguration
Returns:
A string representation of this HL7SocketConfiguration.

Copyright © 2009 Merge Healthcare Inc. All Rights Reserved.