com.xpn.xwiki
Class XWikiConfig

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by com.xpn.xwiki.XWikiConfig
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class XWikiConfig
extends Properties

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
XWikiConfig()
           
XWikiConfig(InputStream is)
           
XWikiConfig(String path)
           
 
Method Summary
 String getProperty(String key)
          
 String getProperty(String key, String defaultValue)
          
 String[] getPropertyAsList(String param)
           
 void loadConfig(InputStream is, String path)
           
 
Methods inherited from class java.util.Properties
list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XWikiConfig

public XWikiConfig()

XWikiConfig

public XWikiConfig(String path)
            throws XWikiException
Throws:
XWikiException

XWikiConfig

public XWikiConfig(InputStream is)
            throws XWikiException
Throws:
XWikiException
Method Detail

loadConfig

public void loadConfig(InputStream is,
                       String path)
                throws XWikiException
Throws:
XWikiException

getPropertyAsList

public String[] getPropertyAsList(String param)
Parameters:
param - - name of property
Returns:
array of string splited from property.

getProperty

public String getProperty(String key,
                          String defaultValue)

This method trims the spaces around the value.

Overrides:
getProperty in class Properties
See Also:
Properties.getProperty(java.lang.String, java.lang.String)

getProperty

public String getProperty(String key)

This method trims the spaces around the value.

Overrides:
getProperty in class Properties
See Also:
Properties.getProperty(java.lang.String)


Copyright © 2004-2013 XWiki. All Rights Reserved.