Class 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 Detail

      • EventsRequestContext

        public EventsRequestContext​(Date timestamp,
                                    Profile profile,
                                    Session session,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
    • 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)