Class ResourceServiceBrokerRequestContext
java.lang.Object
org.onehippo.cms7.crisp.api.broker.ResourceServiceBrokerRequestContext
Provides an access method to the current request object if available.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clear all the attributes stored for the current request context.static String
Return the current resource space name in theResourceServiceBroker
invocation.static jakarta.servlet.ServletRequest
Return the current request object if available.static boolean
Return true if the current request object if available.static void
setCurrentResourceSpace
(String resourceSpace) Set the current resource space name in theResourceServiceBroker
invocation.static void
setCurrentServletRequest
(jakarta.servlet.ServletRequest servletRequest) Set the current request object if available.
-
Method Details
-
getCurrentResourceSpace
Return the current resource space name in theResourceServiceBroker
invocation.- Returns:
- the current resource space name
-
setCurrentResourceSpace
Set the current resource space name in theResourceServiceBroker
invocation.- Parameters:
resourceSpace
- the current resource space name
-
hasCurrentServletRequest
public static boolean hasCurrentServletRequest()Return true if the current request object if available.- Returns:
- true if the current request object if available
-
getCurrentServletRequest
public static jakarta.servlet.ServletRequest getCurrentServletRequest()Return the current request object if available.- Returns:
- the current request object
-
setCurrentServletRequest
public static void setCurrentServletRequest(jakarta.servlet.ServletRequest servletRequest) Set the current request object if available.- Parameters:
servletRequest
- the current request object
-
clear
public static void clear()Clear all the attributes stored for the current request context.
-