|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.version.Configuration
public class Configuration
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.
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 |
---|
public Configuration()
Method Detail |
---|
public static Configuration getInstance()
public Date getDate()
Get the date that appears as the "Implementation-Build-Date" attribute in the manifest.
public String getName()
Get the component name.
public String getVersion()
Get the version that appears as the "Implementation-Version" attribute in the manifest.
public String asUserAgent()
Get a version of the configuration details, suitably formatted as a user-agent header for sending over HTTP.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |