org.minetti.astrodevice.server.core
Class About

java.lang.Object
  extended by org.minetti.astrodevice.server.core.About

public final class About
extends Object

Informations about server (singleton).

Author:
Jean-Philippe MINETTI

Method Summary
 String getApplicationName()
          Returns the application name.
 String getApplicationVersion()
          Returns the application version.
 String getHomeDirectory()
          Returns the home directory of application.
 String getHostname()
          Returns the hostname where astroDeviceServer is hosted.
static About getInstance()
          Returns the singleton instance.
 String getProtocolVersion()
          Returns the version of communication protocol between clients and server.
 void load()
          Loads all informations about server from src/main/resources/astroDeviceServer.properties.
protected  void load(String filename)
          Loads all informations about server from properties file.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

load

public void load()
Loads all informations about server from src/main/resources/astroDeviceServer.properties.


load

protected void load(String filename)
Loads all informations about server from properties file.

Parameters:
filename - Name of properties file.

getInstance

public static About getInstance()
Returns the singleton instance.

Returns:
Singleton instance.

getApplicationName

public String getApplicationName()
Returns the application name.

Returns:
Application name.

getApplicationVersion

public String getApplicationVersion()
Returns the application version.

Returns:
Application version.

getProtocolVersion

public String getProtocolVersion()
Returns the version of communication protocol between clients and server.

Returns:
Version of communication protocol between clients and server.

getHomeDirectory

public String getHomeDirectory()
Returns the home directory of application.

Returns:
Home directory of application.

getHostname

public String getHostname()
Returns the hostname where astroDeviceServer is hosted.

Returns:
Hostname where astroDeviceServer is hosted.

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 astroDevice. All Rights Reserved.