Class CA1HandlerCoreAuthenticated
java.lang.Object
com.io7m.cardant.server.inventory.v1.CA1HandlerCoreAuthenticated
- All Implemented Interfaces:
CAHTTPHandlerFunctionalCoreType
public final class CA1HandlerCoreAuthenticated
extends Object
implements CAHTTPHandlerFunctionalCoreType
A core that executes the given core under authentication.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(io.helidon.webserver.http.ServerRequest request, CAHTTPRequestInformation information) Execute the core.withAuthentication(com.io7m.repetoir.core.RPServiceDirectoryType services, CAHTTPHandlerFunctionalCoreAuthenticatedType<CASession, CAUser> inCore)
-
Method Details
-
withAuthentication
public static CAHTTPHandlerFunctionalCoreType withAuthentication(com.io7m.repetoir.core.RPServiceDirectoryType services, CAHTTPHandlerFunctionalCoreAuthenticatedType<CASession, CAUser> inCore) - Parameters:
services- The servicesinCore- The executed core- Returns:
- A core that executes the given core under authentication
-
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
-