Interface HttpService

All Known Implementing Classes:
VaadinHttpService

public interface HttpService
Interface that provides access to the HttpServletRequest and HttpServletResponse.
Author:
Marko Radinovic (markoradinovic79@gmail.com), Gert-Jan Timmer (gjr.timmer@gmail.com)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.servlet.http.HttpServletRequest
    Returns the current HTTP servlet request, or null if there is no active request.
    jakarta.servlet.http.HttpServletResponse
    Returns the current HTTP servlet response, or null if there is no active response.
  • Method Details

    • getCurrentRequest

      jakarta.servlet.http.HttpServletRequest getCurrentRequest()
      Returns the current HTTP servlet request, or null if there is no active request.
    • getCurrentResponse

      jakarta.servlet.http.HttpServletResponse getCurrentResponse()
      Returns the current HTTP servlet response, or null if there is no active response.