Oracle9iAS Portal Developer Kit
A Primer on URL-based Portlets

The Oracle9iAS Portal Developer Kit currently provides services for Java and PL/SQL.  These services allow developers to integrate Java classes and servlets, Java Server Pages, and PL/SQL as portlets within Oracle9iAS Portal using Portal APIs.  The PDK-PL/SQL and PDK-Java (JPDK) provide  samples, utilities, and articles to easily develop portlets in PL/SQL and Java.   To simplify developing portlets in any language, the Oracle9iAS Portal Developer Kit  introduces  PDK-URL Services.

PDK-URL Services allow developers to take any application written in any language and easily create integrated portlets.  PDK-URL Services takes the URL of an application, parses the content, and uses the PDK-Java framework to create a portlet.  This process allows each show mode of your portlet to be rendered from different applications and/or languages.  For example, you may consider a portlet whose show mode is rendered using PERL, edit mode is rendered using ASP, help mode is rendered using HTML, details mode is rendered using JSP, etc.  The increased flexibility of PDK-URL Services offers many advantages:

The current PDK-Java Framework allows developers to define and list portlets through the provider.xml file and limits the amount of programming required.  The PDK-URL Services extends this Framework and takes advantage of its ease and simplicity. Therefore, creating URL portlets follows the same steps and configuration needed to create Web portlets with a few exceptions.  The following are a few basic steps to create a URL portlet.

ARCHITECTURE

 The current PDK-Java Framework (JPDK) consists of the Web Provider Adapter, Web Provider Interfaces, Web Provider Runtime, and provider.xml.  PDK-URL Services continue to use the existing JPDK classes and only extends the framework where required for rendering content from a URL.  This section describes the architecture of PDK-Java Framework additions and updates directly related to URL Rendering.  It does not cover the architecture of the existing PDK-Java Framework, for more information on this, review A Primer on Web Providers.  

PDK-URL Services takes advantage of the ease and simplicity of creating Web portlets by allowing you to define and list your URL portlets within the provider.xml file.  PDK-URL Services also eliminates the need to do any additional programming by including a default runtime that handles portlet creation, integration, and communication with Oracle9iAS Portal.  The three main areas of PDK-URL Services are the URL Services Interface, URL Services Runtime, and provider.xml.  

URL Services Interface

The URL Services Interface are simply additions to the Web Provider Interfaces included within the JPDK.  The interfaces specific to URL rendering are:

URL Services Runtime

The URL Services Runtime extends classes from the current Web Provider (JPDK) Runtime to adapt to the new URL rendering capabilities.  The URL Services Runtime is comprised of a set of runtime classes.  For more information on the Web Provider Runtime, review Understanding the Web Provider Runtime.  

Provider definition - provider.xml

The current provider.xml stores information by hierarchy and is used to define and list available portlets.  The provider.xml is associated with only one provider.  The default provider within the xml file is oracle.portal.provider.v1.http.DefaultProvider.  However, in order to take advantage of  PDK- URL Services, you will need to specify oracle.portal.provider.v1.http.URLProvider.  The URLProvider parses the additional/updated tags within the provider.xml file.  The URLProvider can handle standard provider.xml tags, but the DefaultProvider cannot handle tags within the provider.xml that contain URL Services information.  The following tags have been added or modified within the provider.xml: 

For more information and in-depth descriptions refer to the following articles:


Revision History: