org.apache.myfaces.util
Class ExternalContextUtils

java.lang.Object
  extended by org.apache.myfaces.util.ExternalContextUtils

public final class ExternalContextUtils
extends java.lang.Object

Utility class for ExternalContext methods.

Version:
$Revision: 901883 $ $Date: 2010-01-21 17:03:17 -0500 (Thu, 21 Jan 2010) $
Author:
Jakob Korherr (latest modification by $Author: jakobk $)

Method Summary
static ResponseSwitch createResponseSwitch(java.lang.Object response)
          Try to create a ResponseSwitch for this response.
static javax.servlet.http.HttpServletResponse getHttpServletResponse(java.lang.Object response)
          Trys to obtain a HttpServletResponse from the Response.
static ResponseSwitch getResponseSwitch(java.lang.Object response)
          Trys to obtain a ResponseSwitch from the Response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHttpServletResponse

public static javax.servlet.http.HttpServletResponse getHttpServletResponse(java.lang.Object response)
Trys to obtain a HttpServletResponse from the Response.

Parameters:
response -
Returns:
if found, the HttpServletResponse, null otherwise

getResponseSwitch

public static ResponseSwitch getResponseSwitch(java.lang.Object response)
Trys to obtain a ResponseSwitch from the Response.

Parameters:
response -
Returns:
if found, the ResponseSwitch, null otherwise

createResponseSwitch

public static ResponseSwitch createResponseSwitch(java.lang.Object response)
Try to create a ResponseSwitch for this response.

Parameters:
response -
Returns:
the created ResponseSwitch, if there is a ResponseSwitch implementation for the given response, null otherwise


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