Package de.pisa.psa.rst.hdl
Class PsaRstApiEvtExe
- java.lang.Object
-
- de.pisa.psa.rst.hdl.PsaRstApiEvtExe
-
public class PsaRstApiEvtExe extends java.lang.Object
REST API: event executor- Since:
- 10.08.2023
- Author:
- weiland
-
-
Field Summary
Fields Modifier and Type Field Description protected PsaRstApiEvtHdlDat
Data
event dataprotected java.lang.String
User
the session user
-
Constructor Summary
Constructors Constructor Description PsaRstApiEvtExe(PsaRstApiEvtHdlDat data)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEvtLogQue(PsaRstApiEvtLogQue.Rsp response)
add a response to the event logprotected void
deleteEvent()
delete the event including the logsprotected void
handleException(java.lang.Throwable exc, PsaRstApiEvtLogQue.Rsp que_rsp)
handle exceptionsjavax.ws.rs.core.Response
processEvent()
start processing the current eventstatic void
setNoLogging(boolean no_logging)
disable the event loggingvoid
setUser(java.lang.String user)
set the session user
-
-
-
Field Detail
-
Data
protected final PsaRstApiEvtHdlDat Data
event data
-
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 handleque_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
-
-