Package ch.tocco.nice2.dms.api.publish
Class RequestServiceImpl
java.lang.Object
ch.tocco.nice2.dms.api.publish.RequestServiceImpl
- All Implemented Interfaces:
RequestService
Contains the HttpServletRequest which belongs to the current request.
Important: Each request (and thus each thread) needs its own instance.
-
Constructor Summary
-
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 letsRequestService.getRequest()
returnOptional.empty()
.void
Set the resolved ContentTreeNode.void
setRequest
(jakarta.servlet.http.HttpServletRequest request) Set the request.Returns an invoker which letsRequestService.getContentTreeNode()
()} return the given node.
-
Constructor Details
-
RequestServiceImpl
public RequestServiceImpl()
-
-
Method Details
-
getRequest
Description copied from interface:RequestService
Get the request.- Specified by:
getRequest
in interfaceRequestService
- Returns:
- the request.
-
setRequest
public void setRequest(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:RequestService
Set the request.- Specified by:
setRequest
in interfaceRequestService
- Parameters:
request
- The request to set.
-
getContentTreeNode
Description copied from interface:RequestService
Returns the resolved node of the resolved request (if available).- Specified by:
getContentTreeNode
in interfaceRequestService
-
setContentTreeNode
Description copied from interface:RequestService
Set the resolved ContentTreeNode.- Specified by:
setContentTreeNode
in interfaceRequestService
-
noRequest
Description copied from interface:RequestService
Returns an invoker which letsRequestService.getRequest()
returnOptional.empty()
.- Specified by:
noRequest
in interfaceRequestService
-
withContentTreeNode
Description copied from interface:RequestService
Returns an invoker which letsRequestService.getContentTreeNode()
()} return the given node.- Specified by:
withContentTreeNode
in interfaceRequestService
-