Package com.io7m.idstore.server.admin_v1
Class IdA1HandlerCoreTransactional
java.lang.Object
com.io7m.idstore.server.admin_v1.IdA1HandlerCoreTransactional
- All Implemented Interfaces:
IdHTTPHandlerFunctionalCoreType
public final class IdA1HandlerCoreTransactional
extends Object
implements IdHTTPHandlerFunctionalCoreType
A servlet core that executes the given core with a database transaction.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(io.helidon.webserver.http.ServerRequest request, IdHTTPRequestInformation information) Execute the core.withTransaction
(com.io7m.repetoir.core.RPServiceDirectoryType inServices, IdHTTPHandlerFunctionalCoreTransactionalType inCore)
-
Method Details
-
withTransaction
public static IdHTTPHandlerFunctionalCoreType withTransaction(com.io7m.repetoir.core.RPServiceDirectoryType inServices, IdHTTPHandlerFunctionalCoreTransactionalType inCore) - Parameters:
inServices
- The servicesinCore
- The core- Returns:
- A servlet core that executes the given core with a database transaction
-
execute
public IdHTTPResponseType execute(io.helidon.webserver.http.ServerRequest request, IdHTTPRequestInformation information) Description copied from interface:IdHTTPHandlerFunctionalCoreType
Execute the core.- Specified by:
execute
in interfaceIdHTTPHandlerFunctionalCoreType
- Parameters:
request
- The requestinformation
- The request information- Returns:
- The response
-