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 Details

    • 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 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.