All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.perimeterx.models.activities.Activity Maven / Gradle / Ivy

There is a newer version: 6.13.0
Show newest version
package com.perimeterx.models.activities;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.perimeterx.models.PXContext;

import java.util.Map;

/**
 * Activity model
 * 

* Created by shikloshi on 06/07/2016. */ public class Activity { private String type; private Map headers; private long timestamp; @JsonProperty("socket_ip") private String socketIp; private String url; @JsonProperty("px_app_id") private String pxAppId; private String vid; private ActivityDetails details; public Activity(String activityType, String appId, PXContext context) { this.type = activityType; this.headers = context.getHeaders(); this.timestamp = System.currentTimeMillis(); this.socketIp = context.getIp(); this.pxAppId = appId; this.url = context.getFullUrl(); this.vid = context.getVid(); this.details = new ActivityDetails(context); } public String getType() { return type; } public Map getHeaders() { return headers; } public long getTimestamp() { return timestamp; } public String getSocketIp() { return socketIp; } public String getUrl() { return url; } public String getPxAppId() { return pxAppId; } public String getVid() { return vid; } public ActivityDetails getDetails() { return details; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy