Package com.soklet.util
Class ResponseUtils
java.lang.Object
com.soklet.util.ResponseUtils
- Since:
- 1.2.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
logException
(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Optional<Route> route, Optional<Object> response, Exception exception) static void
writeFailsafeErrorResponse
(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
-
Method Details
-
logException
public static void logException(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Optional<Route> route, Optional<Object> response, Exception exception) -
writeFailsafeErrorResponse
public static void writeFailsafeErrorResponse(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException - Throws:
ServletException
IOException
-