public class ConfigurationFile extends UpdatedPropertiesFile implements Configuration, PropertiesFileKeys
Configuration.ConnectionMode, Configuration.RoutingMode
defaults
ALIAS_PREFIX, CONNECTION_MODE, EXPORT_SECURITY_CONSTRAINT_ALLOW, EXPORT_SECURITY_CONSTRAINT_DENY, HASH_KEY, IMPORT_SECURITY_CONSTRAINT_ALLOW, IMPORT_SECURITY_CONSTRAINT_DENY, REMOTE_HOST, ROUTING_MODE, SECURITY_DEFINITION, SOCKET_PORT
Constructor and Description |
---|
ConfigurationFile(File propFile) |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefaults(Properties defaults)
to be implemented to add the default values at the start if there is no file.
|
String |
getComments()
Get the comments for the Property file.
|
String |
getConnectionHost()
Get the Host the Session should connect to.
|
Configuration.ConnectionMode |
getConnectionMode()
Get the Connection mode intended for the
Session represented by
this configuration. |
int |
getConnectionPort()
Get the port to connect to.
|
String |
getEncryptionKey()
Get the encryption key to be used for the communication link.
|
ParameterCheckOpertaionChain |
getExportOperationChain()
The security checks that a
BusMember has to pass in order to be
allowed to be exported. |
ParameterCheckOpertaionChain |
getImportOperationChain()
The security checks that a
ImportRequest has to
pass in order to be allowed to create a proxy for it. |
MessageOperationChain |
getIncomingMessageOperationChain()
The security checks that an incoming
WrappedBusMessage has to
pass in order to be allowed to interpreted by the proxy. |
MessageOperationChain |
getOutgoingMessageOperationChain()
The security checks that an outgoing
WrappedBusMessage has to
pass in order to be allowed to transmitted to peer. |
Configuration.RoutingMode |
getRoutingMode()
Get the Routing mode intended for the
Session represented by this
configuration. |
checkPropertiesVersion, getProperty, getProperty, loadProperties, setProperty, storeProperties
list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
public ConfigurationFile(File propFile)
public String getComments()
UpdatedPropertiesFile
getComments
in class UpdatedPropertiesFile
protected void addDefaults(Properties defaults)
UpdatedPropertiesFile
addDefaults
in class UpdatedPropertiesFile
public Configuration.RoutingMode getRoutingMode()
Session
represented by this
configuration.getRoutingMode
in interface Configuration
public Configuration.ConnectionMode getConnectionMode()
Session
represented by
this configuration.getConnectionMode
in interface Configuration
public String getConnectionHost()
clients
this is the hostname of the
server. servers
this is the interface they have
to listen to (default should be 0.0.0.0, i.e: all).getConnectionHost
in interface Configuration
public int getConnectionPort()
clients
this is the port which the
server is set up at. servers
this is the port which they
have to listen to.getConnectionPort
in interface Configuration
public ParameterCheckOpertaionChain getImportOperationChain()
ImportRequest
has to
pass in order to be allowed to create a proxy for it.getImportOperationChain
in interface OperationChainManager
public ParameterCheckOpertaionChain getExportOperationChain()
BusMember
has to pass in order to be
allowed to be exported.getExportOperationChain
in interface OperationChainManager
public MessageOperationChain getIncomingMessageOperationChain()
WrappedBusMessage
has to
pass in order to be allowed to interpreted by the proxy.getIncomingMessageOperationChain
in interface OperationChainManager
public MessageOperationChain getOutgoingMessageOperationChain()
WrappedBusMessage
has to
pass in order to be allowed to transmitted to peer.getOutgoingMessageOperationChain
in interface OperationChainManager
public String getEncryptionKey()
Configuration
getEncryptionKey
in interface Configuration
Copyright © 2015 universAAL Consortium. All Rights Reserved.