Class ResourceServiceBrokerRequestContext


  • public class ResourceServiceBrokerRequestContext
    extends Object
    Provides an access method to the current request object if available.
    • Method Detail

      • getCurrentResourceSpace

        public static String getCurrentResourceSpace()
        Return the current resource space name in the ResourceServiceBroker invocation.
        Returns:
        the current resource space name
      • setCurrentResourceSpace

        public static void setCurrentResourceSpace​(String resourceSpace)
        Set the current resource space name in the ResourceServiceBroker 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.