Servlet
Table of contents
Installation
Add the following to your pom.xml
:
<dependency>
<groupId>org.openapi4j</groupId>
<artifactId>openapi-operation-servlet</artifactId>
</dependency>
Usage
Requests and responses are wrapped with the specific adapter.
// Servlet
Request request = ServletRequest.of(HttpServletRequest hsr);
// validate...
Library | Version | Client | Server | Dependency |
---|---|---|---|---|
Servlet | >= 2.0 | No | ServletRequest | The spec dependency you use |