Class ResponseServiceImpl

java.lang.Object
ch.tocco.nice2.dms.api.publish.ResponseServiceImpl
All Implemented Interfaces:
ResponseService

@Component public class ResponseServiceImpl extends Object implements ResponseService
Contains the HttpServletResponse which belongs to the current request. Important: Each request (and thus each thread) needs its own instance.
  • Constructor Details

    • ResponseServiceImpl

      public ResponseServiceImpl()
  • Method Details

    • getResponse

      public Optional<jakarta.servlet.http.HttpServletResponse> getResponse()
      Description copied from interface: ResponseService
      Get the response.
      Specified by:
      getResponse in interface ResponseService
      Returns:
      the response.
    • setResponse

      public void setResponse(jakarta.servlet.http.HttpServletResponse response)
      Description copied from interface: ResponseService
      Set the response.
      Specified by:
      setResponse in interface ResponseService
      Parameters:
      response - The response to set.