org.apache.myfaces.trinidad.context
Class PageResolver

java.lang.Object
  extended by org.apache.myfaces.trinidad.context.PageResolver

public abstract class PageResolver
extends Object

A page resolver is responsible for determining the physical page to be used for a logical view ID.

By default, the physical page and logical view ID will be identical. To override this, provide a file on the classpath at /META-INF/services/org.apache.myfaces.trinidad.context.PageResolver with the name of the alternative implementation. (There's no current support for decoration, and this general approach may be revisited in the future.)


Constructor Summary
protected PageResolver()
          Constructor.
 
Method Summary
abstract  String encodeActionURI(String actionURI)
          Encodes an action URI.
abstract  String getPhysicalURI(String viewId)
          Performs mapping from a logical view ID to the physical page URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageResolver

protected PageResolver()
Constructor.

Method Detail

getPhysicalURI

public abstract String getPhysicalURI(String viewId)
Performs mapping from a logical view ID to the physical page URI.

Parameters:
viewId - the logical view ID.
Returns:
the URI of the page.

encodeActionURI

public abstract String encodeActionURI(String actionURI)
Encodes an action URI.



Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.