public class Configuration extends Object implements Serializable
Constructor and Description |
---|
Configuration(File file)
Creates a new
Configuration instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List |
getCodeBases()
Return the code bases.
|
byte[] |
getPassword()
Get the administrator password.
|
List |
getProductServers()
Get the product servers.
|
List |
getProfileServers()
Get the profile servers.
|
Properties |
getProperties()
Get the properties.
|
int |
hashCode() |
boolean |
isHTTPSrequired()
Is https access required for the configuration?
|
boolean |
isLocalhostRequired()
Is localhost access required for the configuration?
|
void |
save()
Save the configuration.
|
void |
setHTTPSrequired(boolean required)
Set if https is required to access the configuration.
|
void |
setLocalhostRequired(boolean required)
Set if localhost is required to access the configuration.
|
void |
setPassword(byte[] password)
Set the administrator password.
|
Node |
toXML(Document owner)
Convert the configuration to XML.
|
public static final String NS
public Configuration(File file) throws IOException, SAXException
Configuration
instance.file
- File containing the serialized configuration.IOException
- if an I/O error occurs.SAXException
- if the file can't be parsed.public Node toXML(Document owner)
owner
- Owning document.public Properties getProperties()
Properties
value.public boolean isLocalhostRequired()
public boolean isHTTPSrequired()
public void setHTTPSrequired(boolean required)
required
- True if the configuration must be accessed via https, false if http is OK.public void setLocalhostRequired(boolean required)
required
- True if the configuration must be accessed from the localhost, false otherwise.public List getProductServers()
List
of ProductServer
s.public List getProfileServers()
List
of ProfileServer
s.public byte[] getPassword()
public void setPassword(byte[] password)
password
- Administrator password.public void save() throws IOException
IOException
- if an I/O error occurs.Copyright © 1999-2015 Apache OODT. All Rights Reserved.