本文整理汇总了Java中org.apache.myfaces.trinidad.context.RequestContext.getOutputMode方法的典型用法代码示例。如果您正苦于以下问题:Java RequestContext.getOutputMode方法的具体用法?Java RequestContext.getOutputMode怎么用?Java RequestContext.getOutputMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.myfaces.trinidad.context.RequestContext
的用法示例。
在下文中一共展示了RequestContext.getOutputMode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FacesRenderingContext
import org.apache.myfaces.trinidad.context.RequestContext; //导入方法依赖的package包/类
/**
* Creates a FacesRenderingContext.
* @param fContext the context
*/
private FacesRenderingContext(FacesContext fContext)
{
super();
_adfRenderingContext = RenderingContext.getCurrentInstance();
init(fContext);
RequestContext context = RequestContext.getCurrentInstance();
String outputMode = context.getOutputMode();
if (outputMode != null)
setFacet(outputMode);
_initializeConfiguration(fContext, context);
_initializePPR(fContext);
}
示例2: getRequestParameterMap
import org.apache.myfaces.trinidad.context.RequestContext; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public Map<String, String> getRequestParameterMap()
{
RequestContext reqContext = RequestContext.getCurrentInstance();
String outputMode = reqContext.getOutputMode();
if (outputMode != null && !outputMode.isEmpty())
{
if (outputMode.equals(RequestContext.OutputMode.ATTACHMENT.id()))
{
Map<String, String> reqParamMap = new HashMap<String, String>(1);
reqParamMap.put(_OUTPUT_MODE_PARAM, RequestContext.OutputMode.ATTACHMENT.id());
return reqParamMap;
}
}
return Collections.EMPTY_MAP;
}
示例3: CoreRenderingContext
import org.apache.myfaces.trinidad.context.RequestContext; //导入方法依赖的package包/类
public CoreRenderingContext()
{
FacesContext context = FacesContext.getCurrentInstance();
RequestContext afContext = RequestContext.getCurrentInstance();
_facesContext = context;
_requestContext = afContext;
_properties = new HashMap<Object, Object>();
_outputMode = afContext.getOutputMode();
_agent = _initializeAgent(context,
afContext.getAgent(),
// Go back through getOutputMode()
// in case anyone has overidden getOutputMode()
getOutputMode());
_initializeSkin(context, afContext);
_initializePPR(context, afContext);
// Get and cache (since it can be EL-bound)
_accessibilityMode = afContext.getAccessibilityMode();
_animationEnabled = afContext.isAnimationEnabled();
// Initialize the accessibility profile, providing a default
// instance if necessary.
_accessibilityProfile = afContext.getAccessibilityProfile();
if (_accessibilityProfile == null)
_accessibilityProfile = AccessibilityProfile.getDefaultInstance();
_isDesignTime = _isDesignTime(_agent);
}