Ejemplo n.º 1
0
 private static void addActivityMetaData(EventData event, List<Object> metaData) {
   // adding server host or more correctly monitored server url
   nullCheckAndAdd(metaData, event.getRequestURL(), "");
   nullCheckAndAdd(metaData, event.getRemoteAddress(), "");
   nullCheckAndAdd(metaData, event.getContentType(), "");
   nullCheckAndAdd(metaData, event.getUserAgent(), "");
   nullCheckAndAdd(metaData, PublisherUtil.getHostAddress(), "");
   nullCheckAndAdd(metaData, event.getReferer(), "");
 }
Ejemplo n.º 2
0
  private static void addStatisticsMetaData(EventData event, List<Object> metaData) {
    metaData.add(event.getRequestURL());
    metaData.add(event.getRemoteAddress());
    metaData.add(event.getContentType());
    metaData.add(event.getUserAgent());
    // adding server host or more correctly monitored server url
    metaData.add(PublisherUtil.getHostAddress());

    metaData.add(event.getReferer());
  }