Class PsaRstApiEvtExe

java.lang.Object
de.pisa.psa.rst.hdl.PsaRstApiEvtExe

public class PsaRstApiEvtExe extends Object
REST API: event executor
Since:
10.08.2023
Author:
weiland
  • Field Details

  • Constructor Details

    • PsaRstApiEvtExe

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

    • setUser

      public void setUser(String user)
      set the session user
      Parameters:
      user - user name
    • processEvent

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

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

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

      protected boolean isCheckException(de.pisa.psc.srv.glb.PscExc pex)
      check if an exception is caused by a data check
      Parameters:
      pex - exception to check
      Returns:
      to if check exception
    • isAccessException

      protected boolean isAccessException(de.pisa.psc.srv.glb.PscExc pex)
      check if an exception is caused by an access check
      Parameters:
      pex - exception to check
      Returns:
      to if access exception
    • handleJsonException

      protected void handleJsonException(de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp)
      handle a JSON processing exception
      Parameters:
      pex - PisaCubes exception
      que_rsp - the response handler for the log
    • handleCheckException

      protected void handleCheckException(de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp)
      handle a data check exception
      Parameters:
      pex - PisaCubes exception
      que_rsp - the response handler for the log
    • handleAccessException

      protected void handleAccessException(de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp)
      handle an access exception
      Parameters:
      pex - PisaCubes exception
      que_rsp - the response handler for the log
    • handleUnexpectedException

      protected void handleUnexpectedException(Throwable exc, de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp)
      handle an unexpected exception
      Parameters:
      exc - exception
      pex - PisaCubes exception
      que_rsp - the response handler for the log
    • addEvtLogQue

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