Interface ResponseService

All Known Implementing Classes:
ResponseServiceImpl

public interface ResponseService
Contains the HttpServletResponse which belongs to the current request.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<jakarta.servlet.http.HttpServletResponse>
    Get the response.
    void
    setResponse(jakarta.servlet.http.HttpServletResponse response)
    Set the response.
  • Method Details

    • getResponse

      Optional<jakarta.servlet.http.HttpServletResponse> getResponse()
      Get the response.
      Returns:
      the response.
    • setResponse

      void setResponse(jakarta.servlet.http.HttpServletResponse response)
      Set the response.
      Parameters:
      response - The response to set.
      Throws:
      IllegalStateException - if the response is already set.