org.apache.myfaces.trinidad.context

## Class PageResolver

- java.lang.Object
- - 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

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `PageResolver()` Constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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-2016 The Apache Software Foundation. All Rights Reserved.