Interface ServerResponse.HeadersBuilder.WriteFunction
- Enclosing interface:
- ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines the contract for
ServerResponse.HeadersBuilder.build(WriteFunction)
.- Since:
- 6.1
-
Method Summary
Modifier and TypeMethodDescriptionwrite
(HttpServletRequest servletRequest, HttpServletResponse servletResponse) Write to the givenservletResponse
, or return aModelAndView
to be rendered.
-
Method Details
-
write
@Nullable ModelAndView write(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws Exception Write to the givenservletResponse
, or return aModelAndView
to be rendered.- Parameters:
servletRequest
- the HTTP requestservletResponse
- the HTTP response to write to- Returns:
- a
ModelAndView
to render, ornull
if handled directly - Throws:
Exception
- in case of Servlet errors
-