org.apache.myfaces.webapp.filter
Class PortletUtils

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

public class PortletUtils
extends java.lang.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: 697279 $ $Date: 2008-09-19 18:30:48 -0500 (Fri, 19 Sep 2008) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Constructor Summary
PortletUtils()
           
 
Method Summary
static java.lang.String getContextInitParameter(java.lang.Object context, java.lang.String paramName)
           
static boolean isDisabledTomahawkFacesContextWrapper(java.lang.Object contextOrConfig)
           
static boolean isMultipartContent(java.lang.Object request)
           
 
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(java.lang.Object contextOrConfig)

isMultipartContent

public static boolean isMultipartContent(java.lang.Object request)

getContextInitParameter

public static java.lang.String getContextInitParameter(java.lang.Object context,
                                                       java.lang.String paramName)


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