Interface HttpRequestHandler

All Known Implementing Classes:
CacheResource, ContentTypeValidation, DataSourceChecker, Delete, Get, GetById, IdConverter, ObjectMapper, Post, ReceivedDataValidation, SetDataSource, SetUpModel, Update, UpdateCacheableResource
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HttpRequestHandler

Functional interface for handling HTTP requests. Implementations of this interface should define how to handle a specific HTTP request method,such as GET, POST, PUT, etc.

Implementations of this interface should take two parameters: a Request object representing the incoming request, and a Response object representing the response to be sent back to the client.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    method(Request req, Response res)