Class RenderingContextWebUtils
java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.RenderingContextWebUtils
Utility class that get or create a
RenderingContext
from the current HttpServletRequest
.- Since:
- 7.2
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfillContext
(RenderingContextImpl.RenderingContextBuilder builder, javax.servlet.ServletRequest request) Fill an existing with the currentHttpServletRequest
.getBuilder
(javax.servlet.ServletRequest request) Create anRenderingContextImpl.RenderingContextBuilder
, fill it with the currentHttpServletRequest
and return it.static RenderingContext
getContext
(javax.servlet.ServletRequest request) Get the current context in the currentHttpServletRequest
or create it from the currentHttpServletRequest
.static String
Return the key used to store the context in the request.static void
registerContext
(javax.servlet.ServletRequest request, RenderingContext ctx) Register the given context as the context to use to manage the marshalling.
-
Field Details
-
REQUEST_KEY
- See Also:
-
-
Method Details
-
getContext
Get the current context in the currentHttpServletRequest
or create it from the currentHttpServletRequest
.- Since:
- 7.2
-
registerContext
Register the given context as the context to use to manage the marshalling.- Parameters:
request
- The current request.ctx
- The context to register.- Since:
- 7.10
-
getContextKey
Return the key used to store the context in the request.- Since:
- 7.10
-
getBuilder
public static RenderingContextImpl.RenderingContextBuilder getBuilder(javax.servlet.ServletRequest request) Create anRenderingContextImpl.RenderingContextBuilder
, fill it with the currentHttpServletRequest
and return it.- Since:
- 7.2
-
fillContext
public static RenderingContextImpl.RenderingContextBuilder fillContext(RenderingContextImpl.RenderingContextBuilder builder, javax.servlet.ServletRequest request) Fill an existing with the currentHttpServletRequest
.- Since:
- 7.2
-