Package io.micronaut.servlet.http
Class DefaultServletExchange<Req,Res>
java.lang.Object
io.micronaut.servlet.http.DefaultServletExchange<Req,Res>
- Type Parameters:
Req
- The native request typeRes
- The native response type
- All Implemented Interfaces:
ServletExchange<Req,
Res>
Represents an HTTP exchange in a Serverless context.
- Since:
- 2.0.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionDefaultServletExchange
(ServletHttpRequest<Req, ? super Object> request, ServletHttpResponse<Res, ? super Object> response) Default constructor. -
Method Summary
-
Constructor Details
-
DefaultServletExchange
public DefaultServletExchange(ServletHttpRequest<Req, ? super Object> request, ServletHttpResponse<Res, ? super Object> response) Default constructor.- Parameters:
request
- The requestresponse
- The response
-
-
Method Details
-
getRequest
- Specified by:
getRequest
in interfaceServletExchange<Req,
Res> - Returns:
- The request object
-
getResponse
- Specified by:
getResponse
in interfaceServletExchange<Req,
Res> - Returns:
- The response object
-