public final class RequestContextAccessor extends Object
Constructor and Description |
---|
RequestContextAccessor() |
Modifier and Type | Method and Description |
---|---|
static Optional<javax.servlet.http.HttpServletRequest> |
getCurrentRequest() |
static Optional<RequestContext> |
getCurrentRequestContext() |
static RequestContextFacade |
getRequestContextFacade()
Returns the
RequestContextFacade instance. |
static void |
setRequestContextFacade(RequestContextFacade requestContextFacade)
Replaces the default
RequestContextFacade instance. |
public static void setRequestContextFacade(@Nonnull RequestContextFacade requestContextFacade)
RequestContextFacade
instance. This method is for internal use only.@Nonnull public static Optional<RequestContext> getCurrentRequestContext()
RequestContext
of the current request, if present.@Nonnull public static Optional<javax.servlet.http.HttpServletRequest> getCurrentRequest()
HttpServletRequest
of the current request, if present.public static RequestContextFacade getRequestContextFacade()
RequestContextFacade
instance. For internal use only.Copyright © 2018 SAP SE. All rights reserved.