org.apache.myfaces.webapp.filter
Class ServeResourcePhaseListener

java.lang.Object
  extended by org.apache.myfaces.webapp.filter.ServeResourcePhaseListener
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

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

This listener is used for serve resources, as a replacement of ExtensionsFilter serve resources feature.

The idea is map FacesServlet to org.apache.myfaces.RESOURCE_VIRTUAL_PATH (Default is "/faces/myFacesExtensionResource), so this listener can receive the request.

Version:
$Revision: 685725 $ $Date: 2008-08-13 18:14:31 -0500 (miƩ, 13 ago 2008) $
Author:
Martin Marinschek (latest modification by $Author: lu4242 $)
See Also:
Serialized Form

Field Summary
static String DOLISTENER_CALLED
           
 
Constructor Summary
ServeResourcePhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
           
 void beforePhase(javax.faces.event.PhaseEvent event)
           
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOLISTENER_CALLED

public static final String DOLISTENER_CALLED
See Also:
Constant Field Values
Constructor Detail

ServeResourcePhaseListener

public ServeResourcePhaseListener()
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)
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 © 2012 The Apache Software Foundation. All Rights Reserved.