|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectrestgroupsServer.Settings
public class Settings
This class allows reading RestGroups server settings from XML file. Then it is used for serving those settings to other components of the RestGroups server.
Nested Class Summary | |
---|---|
static class |
Settings.Schema
|
Constructor Summary | |
---|---|
Settings(java.lang.String filename)
Constructor which takes a path to the settings XML file for the argument. |
Method Summary | |
---|---|
GcsFactory |
getFactory()
Returns concrete GcsFactory object. |
GcsSettings |
getGcsSettings()
Returns concrete GcsSettings object. |
static Settings |
getInstance()
Returns Settings instance. |
java.lang.String |
getRestgroupsIP()
Returns the IP address which the RestGroups server is working on. |
int |
getRestgroupsPort()
Returns the network port which the RestGroups server is working on. |
java.util.Map<Settings.Schema,java.lang.String> |
getSchemas()
Returns hash-map containing schema documents used for verifying clients requests bodies. |
static void |
initialise(java.lang.String filename)
Initializes the singleton pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Settings(java.lang.String filename) throws RestGroupsException
filename
- path to the settings file
RestGroupsException
Method Detail |
---|
public static void initialise(java.lang.String filename) throws RestGroupsException
filename
- path to the settings file
RestGroupsException
public GcsFactory getFactory()
GcsFactory
object.
GcsFactory
objectpublic GcsSettings getGcsSettings()
GcsSettings
object.
GcsSettings
objectpublic static Settings getInstance()
public java.lang.String getRestgroupsIP()
public int getRestgroupsPort()
public java.util.Map<Settings.Schema,java.lang.String> getSchemas()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |