Package de.pisa.psa.rst.hdl
Klasse PsaRstApiEvtExe
java.lang.Object
de.pisa.psa.rst.hdl.PsaRstApiEvtExe
REST API: event executor
- Seit:
- 10.08.2023
- Autor:
- weiland
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected final PsaRstApiEvtHdlDat
event dataprotected String
the session user -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
addEvtLogQue
(PsaRstApiEvtLogQue.Rsp response) add a response to the event logprotected void
delete the event including the logsprotected void
handleAccessException
(de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp) handle an access exceptionprotected void
handleCheckException
(de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp) handle a data check exceptionprotected void
handleException
(Throwable exc, PsaRstApiEvtLogQue.Rsp que_rsp) handle exceptionsprotected void
handleJsonException
(de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp) handle a JSON processing exceptionprotected void
handleUnexpectedException
(Throwable exc, de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp) handle an unexpected exceptionprotected boolean
isAccessException
(de.pisa.psc.srv.glb.PscExc pex) check if an exception is caused by an access checkprotected boolean
isCheckException
(de.pisa.psc.srv.glb.PscExc pex) check if an exception is caused by a data checkjavax.ws.rs.core.Response
start processing the current eventvoid
set the session user
-
Felddetails
-
Data
event data -
User
the session user
-
-
Konstruktordetails
-
PsaRstApiEvtExe
Constructor- Parameter:
data
- event data
-
-
Methodendetails
-
setUser
set the session user- Parameter:
user
- user name
-
processEvent
start processing the current event- Gibt zurück:
- the generated response
- Löst aus:
Exception
-
deleteEvent
delete the event including the logs- Löst aus:
Exception
-
handleException
handle exceptions- Parameter:
exc
- exception to handleque_rsp
- the response handler for the log- Löst aus:
Exception
-
isCheckException
protected boolean isCheckException(de.pisa.psc.srv.glb.PscExc pex) check if an exception is caused by a data check- Parameter:
pex
- exception to check- Gibt zurück:
- 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- Parameter:
pex
- exception to check- Gibt zurück:
- to if access exception
-
handleJsonException
protected void handleJsonException(de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp) throws Exception handle a JSON processing exception- Parameter:
pex
- PisaCubes exceptionque_rsp
- the response handler for the log- Löst aus:
Exception
-
handleCheckException
handle a data check exception- Parameter:
pex
- PisaCubes exceptionque_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- Parameter:
pex
- PisaCubes exceptionque_rsp
- the response handler for the log
-
handleUnexpectedException
protected void handleUnexpectedException(Throwable exc, de.pisa.psc.srv.glb.PscExc pex, PsaRstApiEvtLogQue.Rsp que_rsp) throws Exception handle an unexpected exception- Parameter:
exc
- exceptionpex
- PisaCubes exceptionque_rsp
- the response handler for the log- Löst aus:
Exception
-
addEvtLogQue
add a response to the event log- Parameter:
response
- response
-