request = new Request();
request.setType((RequestType) viewClientMode.getCmbRequestType().getSelectedItem());
request.setDate(HelperDate.now());
request.setParameters(parameters);
Response response = client.sendRequest(request);
viewClientMode.getLblSetResponseServerMessage().setText(response.getServerMessage());
viewClientMode.getLblSetResponseDate().setText(HelperDate.format(response.getDate(), "yyyy-MM-dd H:mm:ss"));
viewClientMode.getLblSetResponseStatus().setText(response.getStatus().toString());
viewClientMode.getLblSetResponseStatusNotice().setText(response.getStatusNotice());
viewClientMode.getLstModelResponseData().clear();
Iterator<String> iterator = response.getData().keySet().iterator();
while (iterator.hasNext()) {
String key = (String) iterator.next();
viewClientMode.getLstModelResponseData().addElement(String.format("[%s] = %s", key, response.getValue(key)));
}
} catch (SocketTimeoutException e) {
logger.warning("Error connection timeout");
JOptionPane.showMessageDialog(viewClientMode, SCUILocale.get("ViewClientMode.errorTimeOut"), "Error", JOptionPane.ERROR_MESSAGE);
e.printStackTrace();