Package com.soklet.web.response.writer
Class DefaultApiResponseWriter
java.lang.Object
com.soklet.web.response.writer.DefaultApiResponseWriter
- All Implemented Interfaces:
ApiResponseWriter
,ResponseWriter<ApiResponse>
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeResponse
(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Optional<ApiResponse> response, Optional<Route> route, Optional<Exception> exception)
-
Constructor Details
-
DefaultApiResponseWriter
public DefaultApiResponseWriter()
-
-
Method Details
-
writeResponse
public void writeResponse(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Optional<ApiResponse> response, Optional<Route> route, Optional<Exception> exception) throws IOException - Specified by:
writeResponse
in interfaceResponseWriter<ApiResponse>
- Throws:
IOException
-