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 voidaddChanges(int changes)intgetChanges()intgetProcessedItems()ProfilegetProfile()javax.servlet.http.HttpServletRequestgetRequest()javax.servlet.http.HttpServletResponsegetResponse()SessiongetSession()DategetTimestamp()intgetTotalItems()booleanisNewSession()voidsetNewSession(boolean newSession)voidsetProcessedItems(int processedItems)voidsetProfile(Profile profile)voidsetRequest(javax.servlet.http.HttpServletRequest request)voidsetResponse(javax.servlet.http.HttpServletResponse response)voidsetSession(Session session)voidsetTimestamp(Date timestamp)voidsetTotalItems(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)
-
-