Class RenderingContextWebUtils
- java.lang.Object
-
- org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.RenderingContextWebUtils
-
public final class RenderingContextWebUtils extends Object
Utility class that get or create aRenderingContextfrom the currentHttpServletRequest.- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQUEST_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RenderingContextImpl.RenderingContextBuilderfillContext(RenderingContextImpl.RenderingContextBuilder builder, javax.servlet.ServletRequest request)Fill an existing with the currentHttpServletRequest.static RenderingContextImpl.RenderingContextBuildergetBuilder(javax.servlet.ServletRequest request)Create anRenderingContextImpl.RenderingContextBuilder, fill it with the currentHttpServletRequestand return it.static RenderingContextgetContext(javax.servlet.ServletRequest request)Get the current context in the currentHttpServletRequestor create it from the currentHttpServletRequest.static StringgetContextKey()Return the key used to store the context in the request.static voidregisterContext(javax.servlet.ServletRequest request, RenderingContext ctx)Register the given context as the context to use to manage the marshalling.
-
-
-
Field Detail
-
REQUEST_KEY
public static final String REQUEST_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContext
public static RenderingContext getContext(javax.servlet.ServletRequest request)
Get the current context in the currentHttpServletRequestor create it from the currentHttpServletRequest.- Since:
- 7.2
-
registerContext
public static void registerContext(javax.servlet.ServletRequest request, RenderingContext ctx)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
public static String 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 currentHttpServletRequestand 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
-
-