|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.ip.me.api.pios.configuration.ConfigurationManager
com.sap.ip.me.api.pios.connection.DriverConfigurationManager
This class provides access to a driver configuration parameters including the transport configuration.
The normal use of the DriverConfigurationManager class to set the default transport parameters for a driver is as follows:
DriverInfo driverInfo = Connector.getInstance().getDefaultDriver(ConnectionType.PRINTER);
DriverConfigurationManager dcm = driverInfo.getConfigurationManager();
String[] transports = dcm.listTransports();
dcm.setDefaultTransport(transports[0]);
ConnectionParameters| Constructor Summary | |
protected |
DriverConfigurationManager(ConfigurationManager configurationManager)
Constructs a new DriverConfigurationManager using the specified meta data and configuration file. |
| Method Summary | |
Configuration |
getConfiguration(java.lang.String name)
Returns an instance to the Driver Configuration class for the specified transport. |
java.lang.String |
getDefaultTransport()
Returns the default transport for a driver. |
java.lang.String[] |
listTransports()
Returns a list containing the available transports for the specific driver. |
void |
save()
Stores the configuration changes. |
void |
setDefaultTransport(java.lang.String name)
Sets the default transport for a driver. |
| Methods inherited from class com.sap.ip.me.api.pios.configuration.ConfigurationManager |
add, delete, get, getConfig, getHeaderName, getParamaterValue, getParameters, getPossibleValues, getTypes, list, list, setParameterValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected DriverConfigurationManager(ConfigurationManager configurationManager)
throws ConfigurationException
configurationManager - the configuration manager instance
ConfigurationException - thrown if there is an error while
loading the configuration or metadata files| Method Detail |
public void setDefaultTransport(java.lang.String name)
name - the transport namepublic java.lang.String getDefaultTransport()
public java.lang.String[] listTransports()
throws ConfigurationException
ConfigurationException - thrown if an error
occurs while obtaining the list
public Configuration getConfiguration(java.lang.String name)
throws ConfigurationException
name - the transport name
ConfigurationException - thrown if an error occurs while getting
transport configuration
public void save()
throws ConfigurationException
save in class ConfigurationManagerConfigurationException - thrown if an error occurs while saving the
configuration file
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||