it.eng.spagobi.commons.utilities
Class ChannelUtilities

java.lang.Object
  extended by it.eng.spagobi.commons.utilities.ChannelUtilities

public class ChannelUtilities
extends java.lang.Object


Constructor Summary
ChannelUtilities()
           
 
Method Summary
static java.lang.String getPreferenceValue(it.eng.spago.base.RequestContainer requestContainer, java.lang.String preferenceName, java.lang.String defaultValue)
          Gets the preference value.
static it.eng.spago.base.RequestContainer getRequestContainer(javax.servlet.http.HttpServletRequest httpRequest)
          Gets the request container.
static it.eng.spago.base.ResponseContainer getResponseContainer(javax.servlet.http.HttpServletRequest httpRequest)
          Gets the response container.
static java.lang.String getSpagoBIContextName(javax.servlet.http.HttpServletRequest httpRequest)
          Gets the spago bi context name.
static boolean isPortletRunning()
          Checks if is portlet running.
static boolean isWebRunning()
          Checks if is web running.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelUtilities

public ChannelUtilities()
Method Detail

getRequestContainer

public static it.eng.spago.base.RequestContainer getRequestContainer(javax.servlet.http.HttpServletRequest httpRequest)
Gets the request container.

Parameters:
httpRequest - the http request
Returns:
the request container

getResponseContainer

public static it.eng.spago.base.ResponseContainer getResponseContainer(javax.servlet.http.HttpServletRequest httpRequest)
Gets the response container.

Parameters:
httpRequest - the http request
Returns:
the response container

getPreferenceValue

public static java.lang.String getPreferenceValue(it.eng.spago.base.RequestContainer requestContainer,
                                                  java.lang.String preferenceName,
                                                  java.lang.String defaultValue)
Gets the preference value.

Parameters:
requestContainer - the request container
preferenceName - the preference name
defaultValue - the default value
Returns:
the preference value

getSpagoBIContextName

public static java.lang.String getSpagoBIContextName(javax.servlet.http.HttpServletRequest httpRequest)
Gets the spago bi context name.

Parameters:
httpRequest - the http request
Returns:
the spago bi context name

isWebRunning

public static boolean isWebRunning()
Checks if is web running.

Returns:
true, if is web running

isPortletRunning

public static boolean isPortletRunning()
Checks if is portlet running.

Returns:
true, if is portlet running