public final class RenderingContextWebUtils extends Object
RenderingContext from the current HttpServletRequest.| Modifier and Type | Field and Description | 
|---|---|
static String | 
REQUEST_KEY  | 
| Modifier and Type | Method and Description | 
|---|---|
static RenderingContextImpl.RenderingContextBuilder | 
fillContext(RenderingContextImpl.RenderingContextBuilder builder,
           javax.servlet.ServletRequest request)
Fill an existing with the current  
HttpServletRequest. | 
static RenderingContextImpl.RenderingContextBuilder | 
getBuilder(javax.servlet.ServletRequest request)
Create an  
RenderingContextImpl.RenderingContextBuilder, fill it with the current HttpServletRequest and return it. | 
static RenderingContext | 
getContext(javax.servlet.ServletRequest request)
Get the current context in the current  
HttpServletRequest or create it from the current
 HttpServletRequest. | 
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. 
 | 
public static final String REQUEST_KEY
public static RenderingContext getContext(javax.servlet.ServletRequest request)
HttpServletRequest or create it from the current
 HttpServletRequest.public static void registerContext(javax.servlet.ServletRequest request, RenderingContext ctx)
request - The current request.ctx - The context to register.public static String getContextKey()
public static RenderingContextImpl.RenderingContextBuilder getBuilder(javax.servlet.ServletRequest request)
RenderingContextImpl.RenderingContextBuilder, fill it with the current HttpServletRequest and return it.public static RenderingContextImpl.RenderingContextBuilder fillContext(RenderingContextImpl.RenderingContextBuilder builder, javax.servlet.ServletRequest request)
HttpServletRequest.Copyright © 2019 Nuxeo. All rights reserved.