org.apache.myfaces.context.servlet
Interface ResponseSwitch

All Known Implementing Classes:
HttpServletResponseSwitch, ServletResponseSwitch

public interface ResponseSwitch

Responses which can be enabled or disabled implement this interface.

Version:
$Revision$ $Date$
Author:
Jakob Korherr (latest modification by $Author$)

Field Summary
static java.lang.String RESPONSE_SWITCH_ENABLED
          If the current ResponseSwitch is disabled, Boolean.FALSE will be stored in the FacesContext under this key, otherwise Boolean.TRUE will be stored ATTENTION: this constant is duplicate in UIViewRoot.
 
Method Summary
 boolean isEnabled()
          Are the Response's Writer and OutputStream currently enabled?
 boolean isEnabled(FacesContext facesContext)
           
 void setEnabled(boolean enabled)
           
 void setEnabled(FacesContext facesContext, boolean enabled)
          Enables or disables the Response's Writer and OutputStream.
 

Field Detail

RESPONSE_SWITCH_ENABLED

static final java.lang.String RESPONSE_SWITCH_ENABLED
If the current ResponseSwitch is disabled, Boolean.FALSE will be stored in the FacesContext under this key, otherwise Boolean.TRUE will be stored ATTENTION: this constant is duplicate in UIViewRoot.

See Also:
Constant Field Values
Method Detail

setEnabled

void setEnabled(FacesContext facesContext,
                boolean enabled)
Enables or disables the Response's Writer and OutputStream.

Parameters:
enabled -

setEnabled

void setEnabled(boolean enabled)

isEnabled

boolean isEnabled()
Are the Response's Writer and OutputStream currently enabled?

Returns:

isEnabled

boolean isEnabled(FacesContext facesContext)


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