Package org.apache.unomi.api
Class EventsCollectorRequest
java.lang.Object
org.apache.unomi.api.EventsCollectorRequest
A request for events to be processed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the events to be processed.Retrieve the profileId passed along with the request.Retrieve the sessionId passed along with the request.void
void
setProfileId
(String profileId) Sets the profileId in the request.void
setSessionId
(String sessionId) Sets the sessionId in the request.
-
Constructor Details
-
EventsCollectorRequest
public EventsCollectorRequest()
-
-
Method Details
-
getEvents
Retrieves the events to be processed.- Returns:
- the events to be processed
-
setEvents
-
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
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
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
Sets the profileId in the request.- Parameters:
profileId
- an unique identifier for the profile
-