Search in sources :

Example 1 with ClientHistoryItem

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);
            }
        }
    }
}
Also used : ClientHistoryItem(de.janrufmonitor.service.server.ClientHistoryItem) Client(de.janrufmonitor.service.server.Client)

Aggregations

Client (de.janrufmonitor.service.server.Client)1 ClientHistoryItem (de.janrufmonitor.service.server.ClientHistoryItem)1