Package org.apache.unomi.utils
Class EventsRequestContext
- java.lang.Object
-
- org.apache.unomi.utils.EventsRequestContext
-
public class EventsRequestContext extends Object
This is a bean that maintain the current situation during a request that contains events to be processed. It's in charge to hold an up to date Session + Profile for the current request, but also the status of the events executions: - changes - number of events processed
-
-
Constructor Summary
Constructors Constructor Description EventsRequestContext(Date timestamp, Profile profile, Session session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChanges(int changes)
int
getChanges()
int
getProcessedItems()
Profile
getProfile()
javax.servlet.http.HttpServletRequest
getRequest()
javax.servlet.http.HttpServletResponse
getResponse()
Session
getSession()
Date
getTimestamp()
int
getTotalItems()
boolean
isNewSession()
void
setNewSession(boolean newSession)
void
setProcessedItems(int processedItems)
void
setProfile(Profile profile)
void
setRequest(javax.servlet.http.HttpServletRequest request)
void
setResponse(javax.servlet.http.HttpServletResponse response)
void
setSession(Session session)
void
setTimestamp(Date timestamp)
void
setTotalItems(int totalItems)
-
-
-
Method Detail
-
getTimestamp
public Date getTimestamp()
-
setTimestamp
public void setTimestamp(Date timestamp)
-
getProfile
public Profile getProfile()
-
setProfile
public void setProfile(Profile profile)
-
getSession
public Session getSession()
-
setSession
public void setSession(Session session)
-
isNewSession
public boolean isNewSession()
-
setNewSession
public void setNewSession(boolean newSession)
-
getChanges
public int getChanges()
-
addChanges
public void addChanges(int changes)
-
getTotalItems
public int getTotalItems()
-
setTotalItems
public void setTotalItems(int totalItems)
-
getProcessedItems
public int getProcessedItems()
-
setProcessedItems
public void setProcessedItems(int processedItems)
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
-
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest request)
-
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
-
setResponse
public void setResponse(javax.servlet.http.HttpServletResponse response)
-
-