Class RenderingContextWebUtils
java.lang.Object
org.nuxeo.ecm.webengine.rest.coreiodelegate.RenderingContextWebUtils
Utility class that get or create a
RenderingContext from the current HttpServletRequest.- Since:
- 7.2
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfillContext(RenderingContextImpl.RenderingContextBuilder builder, jakarta.servlet.ServletRequest request) Fill an existing with the currentHttpServletRequest.getBuilder(jakarta.servlet.ServletRequest request) Create anRenderingContextImpl.RenderingContextBuilder, fill it with the currentHttpServletRequestand return it.static RenderingContextgetContext(jakarta.servlet.ServletRequest request) Get the current context in the currentHttpServletRequestor create it from the currentHttpServletRequest.static StringReturn the key used to store the context in the request.static voidregisterContext(jakarta.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 currentHttpServletRequestor 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(jakarta.servlet.ServletRequest request) Create anRenderingContextImpl.RenderingContextBuilder, fill it with the currentHttpServletRequestand return it.- Since:
- 7.2
-
fillContext
public static RenderingContextImpl.RenderingContextBuilder fillContext(RenderingContextImpl.RenderingContextBuilder builder, jakarta.servlet.ServletRequest request) Fill an existing with the currentHttpServletRequest.- Since:
- 7.2
-