Interface RequestService

All Known Implementing Classes:
RequestServiceImpl

public interface RequestService
Contains the HttpServletRequest which belongs to the current request.
  • Method Details

    • getRequest

      Optional<jakarta.servlet.http.HttpServletRequest> getRequest()
      Get the request.
      Returns:
      the request.
    • setRequest

      void setRequest(jakarta.servlet.http.HttpServletRequest request)
      Set the request.
      Parameters:
      request - The request to set.
    • getContentTreeNode

      Optional<ContentTreeNode> getContentTreeNode()
      Returns the resolved node of the resolved request (if available).
    • setContentTreeNode

      void setContentTreeNode(ContentTreeNode node)
      Set the resolved ContentTreeNode.
    • noRequest

      Invoker noRequest()
      Returns an invoker which lets getRequest() return Optional.empty().
    • withContentTreeNode

      Invoker withContentTreeNode(ContentTreeNode node)
      Returns an invoker which lets getContentTreeNode() ()} return the given node.