Oracle Fusion Middleware Disc API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.4)
E14257-04

Module bea.wlp.disc.uri

This module provides classes used to manipulate URIs.

The Uri class is the representation of a URI and has all of the methods necessary to manipulate the components of a URI, including template replacement for templatized URIs.

The UriRewriter class and its subclasses add the capability to parse a URI string from recognized javascript pseudo-protocol links. Such psuedo-protocol links are the result of client-side URL rewriting done by the DISC framework to support AJAX enabled portlets and desktops. Using a UriRewriter to instantiate a Uri, a user does not need foreknowledge about whether or not the URI has been rewritten by DISC. In this way, the same code can be used to transparently manipulate a URI whether or not it has been rewritten by DISC.

The UriRewriter classes provide a mechanism for manipulating target URIs for recognized proxy URIs, such as proxy URIs for remote portlets.

The UriRewriterFactory is used to select a UriRewriter that recognizes the URI string of interest. In this way, code can be written to transparently manipulate a target URI whether or not the URI has been rewritten into a proxy URI by the server. If the URI is a recognized proxy URI then the UriRewriterFactory will select the UriRewriter subclass that can provide access to the target URI. If the URI is a simple, direct, non-proxy URI then the base UriRewriter will be selected and will provide access to the target URI with the same methods as all other UriRewriters.

Oracle Fusion Middleware Disc API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.4)
E14257-04

Copyright © 2011, Oracle. All rights reserved.