Package ch.tocco.nice2.dms.api.publish
Interface RequestService
- All Known Implementing Classes:
RequestServiceImpl
public interface RequestService
Contains the HttpServletRequest which belongs to the current request.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the resolved node of the resolved request (if available).Optional
<jakarta.servlet.http.HttpServletRequest> Get the request.Returns an invoker which letsgetRequest()
returnOptional.empty()
.void
Set the resolved ContentTreeNode.void
setRequest
(jakarta.servlet.http.HttpServletRequest request) Set the request.Returns an invoker which letsgetContentTreeNode()
()} return the given node.
-
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
Set the resolved ContentTreeNode. -
noRequest
Invoker noRequest()Returns an invoker which letsgetRequest()
returnOptional.empty()
. -
withContentTreeNode
Returns an invoker which letsgetContentTreeNode()
()} return the given node.
-