Package org.apache.unomi.api
Class EventsCollectorRequest
- java.lang.Object
-
- org.apache.unomi.api.EventsCollectorRequest
-
public class EventsCollectorRequest extends Object
A request for events to be processed.
-
-
Constructor Summary
Constructors Constructor Description EventsCollectorRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Event>
getEvents()
Retrieves the events to be processed.String
getProfileId()
Retrieve the profileId passed along with the request.String
getSessionId()
Retrieve the sessionId passed along with the request.void
setEvents(List<Event> events)
void
setProfileId(String profileId)
Sets the profileId in the request.void
setSessionId(String sessionId)
Sets the sessionId in the request.
-
-
-
Method Detail
-
getEvents
public List<Event> getEvents()
Retrieves the events to be processed.- Returns:
- the events to be processed
-
getSessionId
public String getSessionId()
Retrieve the sessionId passed along with the request. All events will be processed with this sessionId as a default- Returns:
- the identifier for the session
-
setSessionId
public void setSessionId(String sessionId)
Sets the sessionId in the request. This is the preferred method of passing along a session identifier with the request, as passing it along in the URL can lead to potential security vulnerabilities.- Parameters:
sessionId
- an unique identifier for the session
-
getProfileId
public String getProfileId()
Retrieve the profileId passed along with the request. All events will be processed with this profileId as a default- Returns:
- the identifier for the profile
-
setProfileId
public void setProfileId(String profileId)
Sets the profileId in the request.- Parameters:
profileId
- an unique identifier for the profile
-
-