org.apache.myfaces.webapp.filter
Class PortletUtils

java.lang.Object
  extended by org.apache.myfaces.webapp.filter.PortletUtils

public class PortletUtils
extends Object

This class is used to hold some utilities used by tomahawk in portlet environments. The idea is that all calls to portlet api methods should be done here, to avoid ClassNotFoundException error in servlet environments. The public methods should not use classes on portlet api, so the other classes calling this class does not have dependencies to this api.

Since:
1.1.8
Version:
$Revision: 954965 $ $Date: 2010-06-15 11:58:31 -0500 (Tue, 15 Jun 2010) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Constructor Summary
PortletUtils()
           
 
Method Summary
static Object getAttribute(Object context, String key)
           
static String getContextInitParameter(Object context, String paramName)
           
static boolean isDisabledTomahawkFacesContextWrapper(Object contextOrConfig)
           
static boolean isMultipartContent(Object request)
           
static void setAttribute(Object context, String key, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletUtils

public PortletUtils()
Method Detail

isDisabledTomahawkFacesContextWrapper

public static boolean isDisabledTomahawkFacesContextWrapper(Object contextOrConfig)

isMultipartContent

public static boolean isMultipartContent(Object request)

getContextInitParameter

public static String getContextInitParameter(Object context,
                                             String paramName)

getAttribute

public static Object getAttribute(Object context,
                                  String key)

setAttribute

public static void setAttribute(Object context,
                                String key,
                                Object value)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.