Class ResourceServiceBrokerRequestContext
- java.lang.Object
-
- org.onehippo.cms7.crisp.api.broker.ResourceServiceBrokerRequestContext
-
public class ResourceServiceBrokerRequestContext extends Object
Provides an access method to the current request object if available.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clear()
Clear all the attributes stored for the current request context.static String
getCurrentResourceSpace()
Return the current resource space name in theResourceServiceBroker
invocation.static javax.servlet.ServletRequest
getCurrentServletRequest()
Return the current request object if available.static boolean
hasCurrentServletRequest()
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(javax.servlet.ServletRequest servletRequest)
Set the current request object if available.
-
-
-
Method Detail
-
getCurrentResourceSpace
public static String getCurrentResourceSpace()
Return the current resource space name in theResourceServiceBroker
invocation.- Returns:
- the current resource space name
-
setCurrentResourceSpace
public static void setCurrentResourceSpace(String resourceSpace)
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 javax.servlet.ServletRequest getCurrentServletRequest()
Return the current request object if available.- Returns:
- the current request object
-
setCurrentServletRequest
public static void setCurrentServletRequest(javax.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.
-
-