SMILA 1.0 API documentation

org.eclipse.smila.http.server.internal
Class HttpServerProperties

java.lang.Object
  extended by org.eclipse.smila.http.server.internal.HttpServerProperties

public class HttpServerProperties
extends java.lang.Object

loads configuration file httpserver.properties.


Constructor Summary
HttpServerProperties()
          create instance and load properties.
 
Method Summary
 long getDataSize(java.lang.String key, java.lang.String defaultValue)
          parse a property value as a data size (512m, 2g, ...).
 java.lang.String getProperty(java.lang.String key)
          get value for key, if set.
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          get value for key, if set, else return defaultValue.
 void loadConfiguration()
          load configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServerProperties

public HttpServerProperties()
create instance and load properties.

Method Detail

loadConfiguration

public void loadConfiguration()
load configuration.


getProperty

public java.lang.String getProperty(java.lang.String key)
get value for key, if set.


getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
get value for key, if set, else return defaultValue.


getDataSize

public long getDataSize(java.lang.String key,
                        java.lang.String defaultValue)
parse a property value as a data size (512m, 2g, ...).


SMILA 1.0 API documentation