Class RenderingContextWebUtils

java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.RenderingContextWebUtils

public final class RenderingContextWebUtils extends Object
Utility class that get or create a RenderingContext from the current HttpServletRequest.
Since:
7.2
  • Field Details

  • Method Details

    • getContext

      public static RenderingContext getContext(javax.servlet.ServletRequest request)
      Get the current context in the current HttpServletRequest or create it from the current HttpServletRequest.
      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 an RenderingContextImpl.RenderingContextBuilder, fill it with the current HttpServletRequest and return it.
      Since:
      7.2
    • fillContext

      public static RenderingContextImpl.RenderingContextBuilder fillContext(RenderingContextImpl.RenderingContextBuilder builder, javax.servlet.ServletRequest request)
      Fill an existing with the current HttpServletRequest.
      Since:
      7.2