public class ResourceServiceBrokerRequestContext extends Object
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clear all the attributes stored for the current request context.
|
static String |
getCurrentResourceSpace()
Return the current resource space name in the
ResourceServiceBroker 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 the
ResourceServiceBroker invocation. |
static void |
setCurrentServletRequest(javax.servlet.ServletRequest servletRequest)
Set the current request object if available.
|
public static String getCurrentResourceSpace()
ResourceServiceBroker
invocation.public static void setCurrentResourceSpace(String resourceSpace)
ResourceServiceBroker
invocation.servletRequest
- the current resource space namepublic static boolean hasCurrentServletRequest()
public static javax.servlet.ServletRequest getCurrentServletRequest()
public static void setCurrentServletRequest(javax.servlet.ServletRequest servletRequest)
servletRequest
- the current request objectpublic static void clear()
Copyright © 2017–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.