public class ComponentUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static ComponentPresentation |
getComponentPresentation(javax.servlet.http.HttpServletRequest request)
Get the component from the request that has been set using
setComponentPresentation(javax.servlet.http.HttpServletRequest, org.dd4t.contentmodel.ComponentPresentation). |
static BaseViewModel |
getViewModel(String modelName) |
static Object |
getViewModels() |
static Map<String,BaseViewModel> |
getViewModels(javax.servlet.http.HttpServletRequest request) |
static void |
removeComponentPresentation(javax.servlet.http.HttpServletRequest request)
Remove the component and model from the request which have been set using
setComponentPresentation(javax.servlet.http.HttpServletRequest, org.dd4t.contentmodel.ComponentPresentation). |
static void |
setComponentPresentation(javax.servlet.http.HttpServletRequest request,
ComponentPresentation componentPresentation) |
public static ComponentPresentation getComponentPresentation(javax.servlet.http.HttpServletRequest request)
setComponentPresentation(javax.servlet.http.HttpServletRequest, org.dd4t.contentmodel.ComponentPresentation).public static void setComponentPresentation(javax.servlet.http.HttpServletRequest request,
ComponentPresentation componentPresentation)
public static void removeComponentPresentation(javax.servlet.http.HttpServletRequest request)
setComponentPresentation(javax.servlet.http.HttpServletRequest, org.dd4t.contentmodel.ComponentPresentation).public static Map<String,BaseViewModel> getViewModels(javax.servlet.http.HttpServletRequest request)
public static BaseViewModel getViewModel(String modelName)
public static Object getViewModels()
Copyright © 2018. All rights reserved.