public abstract class AbstractRequestContextFacade extends Object implements RequestContextFacade
Constructor and Description |
---|
AbstractRequestContextFacade() |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<javax.servlet.http.HttpServletRequest> |
getCurrentRequest() |
<T> T |
getRequestContextProperty(String name,
Class<T> type) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCurrentRequestContext, removeCurrentContext, setCurrentContext
public com.google.common.base.Optional<javax.servlet.http.HttpServletRequest> getCurrentRequest()
getCurrentRequest
in interface RequestContextFacade
HttpServletRequest
of the current request, if present.public <T> T getRequestContextProperty(String name, Class<T> type) throws RequestContextPropertyException
getRequestContextProperty
in interface RequestContextFacade
RequestContext
.RequestContextPropertyException
- If no RequestContext
is available, the property has the wrong type, or a property with the
given name cannot be found.Copyright © 2018 SAP SE. All rights reserved.