Class PsaRstApiEvtExe


  • public class PsaRstApiEvtExe
    extends java.lang.Object
    REST API: event executor
    Since:
    10.08.2023
    Author:
    weiland
    • Field Detail

      • User

        protected java.lang.String User
        the session user
    • Constructor Detail

      • PsaRstApiEvtExe

        public PsaRstApiEvtExe​(PsaRstApiEvtHdlDat data)
        Constructor
        Parameters:
        data - event data
    • Method Detail

      • setUser

        public void setUser​(java.lang.String user)
        set the session user
        Parameters:
        user - user name
      • setNoLogging

        public static void setNoLogging​(boolean no_logging)
        disable the event logging
        Parameters:
        no_logging - true if the logging should be disabled for this thread
      • processEvent

        public javax.ws.rs.core.Response processEvent()
                                               throws java.lang.Exception
        start processing the current event
        Returns:
        the generated response
        Throws:
        java.lang.Exception
      • deleteEvent

        protected void deleteEvent()
                            throws java.lang.Exception
        delete the event including the logs
        Throws:
        java.lang.Exception
      • handleException

        protected void handleException​(java.lang.Throwable exc,
                                       PsaRstApiEvtLogQue.Rsp que_rsp)
                                throws java.lang.Exception
        handle exceptions
        Parameters:
        exc - exception to handle
        que_rsp - the response handler for the log
        Throws:
        java.lang.Exception
      • addEvtLogQue

        protected void addEvtLogQue​(PsaRstApiEvtLogQue.Rsp response)
        add a response to the event log
        Parameters:
        response - response