org.rhq.enterprise.gui.common.framework
Class HttpHeadersInjector

java.lang.Object
  extended by org.rhq.enterprise.gui.common.framework.HttpHeadersInjector
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

public class HttpHeadersInjector
extends Object
implements javax.faces.event.PhaseListener

This phase listener is used to inject the HTTP headers into the response for all JSF pages. Currently we inject the headers for immediate cache expiry.

Author:
Lukas Krejci
See Also:
Serialized Form

Constructor Summary
HttpHeadersInjector()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
           
 void beforePhase(javax.faces.event.PhaseEvent event)
          We insert all the HTTP headers into the response before the RENDER_RESPONSE phase begins so that the headers are output before any other data.
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpHeadersInjector

public HttpHeadersInjector()
Method Detail

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent event)
Specified by:
afterPhase in interface javax.faces.event.PhaseListener

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent event)
We insert all the HTTP headers into the response before the RENDER_RESPONSE phase begins so that the headers are output before any other data.

Specified by:
beforePhase in interface javax.faces.event.PhaseListener

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Specified by:
getPhaseId in interface javax.faces.event.PhaseListener


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.