public final class RequestContextAccessor extends Object
Constructor and Description |
---|
RequestContextAccessor() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Optional<javax.servlet.http.HttpServletRequest> |
getCurrentRequest() |
static com.google.common.base.Optional<RequestContext> |
getCurrentRequestContext() |
static RequestContextFacade |
getRequestContextFacade()
Returns the
RequestContextFacade instance. |
static <T> T |
getRequestContextProperty(String name,
Class<T> type) |
static void |
setRequestContextFacade(RequestContextFacade requestContextFacade)
Replaces the default
RequestContextFacade instance. |
public static void setRequestContextFacade(RequestContextFacade requestContextFacade)
RequestContextFacade
instance. This method is for internal use only.public static com.google.common.base.Optional<RequestContext> getCurrentRequestContext()
RequestContext
of the current request, if present.public static com.google.common.base.Optional<javax.servlet.http.HttpServletRequest> getCurrentRequest()
HttpServletRequest
of the current request, if present.public static <T> T getRequestContextProperty(String name, Class<T> type) throws RequestContextPropertyException
RequestContext
.RequestContextPropertyException
- If no RequestContext
is available, the property has the wrong type, or a property with the
given name cannot be found.@Generated(value="lombok") public static RequestContextFacade getRequestContextFacade()
RequestContextFacade
instance. For internal use only.Copyright © 2018 SAP SE. All rights reserved.