Class RenderingContextWebUtils
- java.lang.Object
-
- org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.RenderingContextWebUtils
-
public final class RenderingContextWebUtils extends Object
Utility class that get or create aRenderingContext
from the currentHttpServletRequest
.- Since:
- 7.2
-
-
Field Summary
Fields Modifier and Type Field Description static String
REQUEST_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RenderingContextImpl.RenderingContextBuilder
fillContext(RenderingContextImpl.RenderingContextBuilder builder, javax.servlet.ServletRequest request)
Fill an existing with the currentHttpServletRequest
.static RenderingContextImpl.RenderingContextBuilder
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
getContextKey()
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 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 currentHttpServletRequest
or 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 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
-
-