org.palo.api
Interface ServerInfo


public interface ServerInfo

ServerInfo This object provides information about the currently used server. Please note that not all server provide all information. If this is the case null is returned.

Version:
$Id: ServerInfo.html,v 1.4 2009/07/09 11:01:46 ArndHouben Exp $

Field Summary
static java.lang.String BUILD_NUMBER_PROPERTY
           
static java.lang.String DESCRIPTION_PROPERTY
           
static java.lang.String MAJOR_VERSION_PROPERTY
           
static java.lang.String MINOR_VERSION_PROPERTY
           
static java.lang.String SECURITY_INFO_PROPERTY
           
 
Method Summary
 java.lang.String getName()
          Returns the server name or null if server does not provide it
 java.lang.String getProperty(java.lang.String id)
          Returns the value for the property which is specified by the given id.
 java.lang.String[] getPropertyIds()
          Returns all property ids known to the current used server.
 java.lang.String getType()
          Returns the server type or null if server does not provide it.
 java.lang.String getVersion()
          Returns the server version name or null if server does not provide it
 

Field Detail

SECURITY_INFO_PROPERTY

static final java.lang.String SECURITY_INFO_PROPERTY
See Also:
Constant Field Values

BUILD_NUMBER_PROPERTY

static final java.lang.String BUILD_NUMBER_PROPERTY
See Also:
Constant Field Values

MINOR_VERSION_PROPERTY

static final java.lang.String MINOR_VERSION_PROPERTY
See Also:
Constant Field Values

MAJOR_VERSION_PROPERTY

static final java.lang.String MAJOR_VERSION_PROPERTY
See Also:
Constant Field Values

DESCRIPTION_PROPERTY

static final java.lang.String DESCRIPTION_PROPERTY
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Returns the server name or null if server does not provide it

Returns:
server name or null

getVersion

java.lang.String getVersion()
Returns the server version name or null if server does not provide it

Returns:
server version or null

getType

java.lang.String getType()
Returns the server type or null if server does not provide it.

Returns:
server type or null

getPropertyIds

java.lang.String[] getPropertyIds()
Returns all property ids known to the current used server.

Returns:
all property ids known to the current used server

getProperty

java.lang.String getProperty(java.lang.String id)
Returns the value for the property which is specified by the given id. If the server does not know this property null is returned.

Parameters:
id - the property identifier
Returns:
the property value or null if no such property was defined