Package dev.relism.flash.models
Class SimpleHandler
java.lang.Object
dev.relism.flash.models.RequestHandler
dev.relism.flash.models.SimpleHandler
Delegates
handle(dev.relism.flash.models.Request, dev.relism.flash.models.Response) to a SimpleHandler.FunctionalHandler so lambdas can be used without
relying on Lombok-generated constructors (IDE-safe, annotation-processing independent).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface for handling requests, used bySimpleHandler. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleHandler
-
-
Method Details
-
handle
Description copied from class:RequestHandlerHandles an incoming request. The return value determines the response body: return aResponseto replace the whole response, any other non-null value to set it as the body, ornullto leave the response as-is.- Specified by:
handlein classRequestHandler- Throws:
Exception
-