use of de.janrufmonitor.service.server.ClientHistoryItem in project janrufmonitor by tbrandt77.
the class ServerHandler method setHistoryEvent.
private void setHistoryEvent(IHttpRequest req) throws Exception {
String pimclient = req.getInetAddress().getHostAddress();
if (pimclient.length() > 0) {
Client c = ClientRegistry.getInstance().getClient(pimclient);
if (c != null) {
String event = req.getParameter(ServerHandler.PARAMETER_ACTION);
if (event != null) {
ClientHistoryItem item = new ClientHistoryItem(System.currentTimeMillis(), event);
c.setHistoryItem(item);
this.m_logger.info("Set new history item to client: " + c);
}
}
}
}
Aggregations