Responsibilities of a Web Adapter
Explore the responsibilities of a web adapter in Hexagonal Architecture, including transforming HTTP requests into domain models, performing authorization and validation, calling use cases, and managing responses. Understand how to maintain a clean separation between the web layer and application core to enable modularity and flexibility.
We'll cover the following...
We'll cover the following...
The web adapter
What does a web adapter actually do? Let’s say we want to provide a
A web adapter usually does these things:
- Maps
request to Java objectsHTTP Hypertext Transfer Protocol - Performs authorization checks
- Validates input
- Maps input to the input model of the use case
- Calls the use case
- Maps output of the use case back to
HTTP Hypertext Transfer Protocol