Class CA1HandlerCoreTransactional
java.lang.Object
com.io7m.cardant.server.inventory.v1.internal.CA1HandlerCoreTransactional
- All Implemented Interfaces:
CAHTTPHandlerFunctionalCoreType
public final class CA1HandlerCoreTransactional
extends Object
implements CAHTTPHandlerFunctionalCoreType
A servlet core that executes the given core with a database transaction.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(io.helidon.webserver.http.ServerRequest request, CAHTTPRequestInformation information) Execute the core.withTransaction(com.io7m.repetoir.core.RPServiceDirectoryType inServices, CAHTTPHandlerFunctionalCoreTransactionalType inCore)
-
Method Details
-
withTransaction
public static CAHTTPHandlerFunctionalCoreType withTransaction(com.io7m.repetoir.core.RPServiceDirectoryType inServices, CAHTTPHandlerFunctionalCoreTransactionalType inCore) - Parameters:
inServices- The servicesinCore- The core- Returns:
- A servlet core that executes the given core with a database transaction
-
execute
public CAHTTPResponseType execute(io.helidon.webserver.http.ServerRequest request, CAHTTPRequestInformation information) Description copied from interface:CAHTTPHandlerFunctionalCoreTypeExecute the core.- Specified by:
executein interfaceCAHTTPHandlerFunctionalCoreType- Parameters:
request- The requestinformation- The request information- Returns:
- The response
-