ca.infoway.messagebuilder.version
Class Configuration

Package class diagram package Configuration
java.lang.Object
  extended by ca.infoway.messagebuilder.version.Configuration

public class Configuration
extends Object

A class that provides easy access to configuration information found in the manifest file.

This class can be used, for example, to provide default values for version numbers that could be used in the sender block of an HL7 message.

Author:
Intelliware Development

Constructor Summary
Configuration()
           
 
Method Summary
 String asUserAgent()
          Get a version of the configuration details, suitably formatted as a user-agent header for sending over HTTP.
 Date getDate()
          Get the date that appears as the "Implementation-Build-Date" attribute in the manifest.
static Configuration getInstance()
          Static accessor.
 String getName()
          Get the component name.
 String getVersion()
          Get the version that appears as the "Implementation-Version" attribute in the manifest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

getInstance

public static Configuration getInstance()
Static accessor.

Returns:
- the instance of the configuration.

getDate

public Date getDate()

Get the date that appears as the "Implementation-Build-Date" attribute in the manifest.

Returns:
- the build date

getName

public String getName()

Get the component name.

Returns:
- the name

getVersion

public String getVersion()

Get the version that appears as the "Implementation-Version" attribute in the manifest.

Returns:
- the version

asUserAgent

public String asUserAgent()

Get a version of the configuration details, suitably formatted as a user-agent header for sending over HTTP.

Returns:
- the configuration details formatted as a user agent header.


Copyright © 2013. All Rights Reserved.