This class provides methods to retrieve configuration parameters from the server.
getConfigurationXML
This method retrieves the configuration parameters from the server as an XML data. The method will throw an exception if there is a problem with retrieving the configuration XML.
public String getConfigurationXML(
String username,
String password,
int readerType,
SCRAConfigurationDeviceInfo deviceInfo,
String address,
int timeout) throws MTSCRAException
Parameters:
Parameter
Description
username
Return Value:
String value of the configuration parameters retrieved from the server.
This method retrieves the configuration parameters from XML data as a ProcessMessageResponse object. The method will throw an exception if there is a problem with retrieving the configuration XML.
Parameters:
Return Value:
ProcessMessageResponse containing the configuration parameters.
This method retrieves the configuration parameters from the server as an XML data. The method will throw an exception if there is a problem with retrieving the configuration XML.
Parameters:
Return Value:
String value of the configuration parameters for the specified device model.
String value of the username.
password
String value of the password.
readerType
Integer value indicating the type of reader device.
deviceInfo
SCRAConfigurationDeviceInfo value containing information pertaining to the device.
address
String value of the address for connection to the server.
timeout
Integer value of the timeout in seconds for connection to the server.
Parameter
Description
xmlConfig
String value of the the configuration parameters from the server.
Parameter
Description
model
String value containing the device model.
messageResponse
ProcessMessageResponse containing the configuration parameters.
getConfigurationResponse
getConfigurationParams
public ProcessMessageResponse getConfigurationResponse(
String xmlConfig) throws MTSCRAException
public String getConfigurationParams(
String model,
ProcessMessageResponse messageReponse) throws MTSCRAException