· 什麼是WSRP?
WSRP 是 OASIS Web Service for Remote Portlets的縮寫. WSRP主要用來簡化Portal對於各種資源或者程式的整合的複雜性, 可以避免編程帶來的整合的複雜性. 並且Portal的管理員可以從大量的服務中選擇需要的用以整和到Portal中.
· Portlet and Servlet
摘自(Portlet Specs v1.0)
相同點:
• Portlets are Java technology based web components
• Portlets are managed by a specialized container
• Portlets generate dynamic content
• Portlets lifecycle is managed by a container
• Portlets interact with web client via a request/response paradigm
不同點:
• Portlets only generate markup fragments, not complete documents. The Portal aggregates portlet markup fragments into a complete portal page
• Portlets are not directly bound to a URL
• Web clients interact with portlets through a portal system
• Portlets have a more refined request handling, action requests and render requests
• Portlets have predefined portlet modes and window states that indicate the function the portlet is performing and the amount of real state in the portal page
• Portlets can exist many times in a portal page
Portlet特有:
• Portlets have means for accessing and storing persistent configuration and customization data
• Portlets have access to user profile information
• Portlets have URL rewriting functions for creating hyperlinks within their content, which allow portal server agnostic creation of links and actions in page fragments
• Portlets can store transient data in the portlet session in two different scopes: the application-wide scope and the portlet private scope
Servlet特有:
• Setting the character set encoding of the response
• Setting HTTP headers on the response
• The URL of the client request to the portal
· 概念
如圖: Figure 1.1
a. Decorations and controls (修飾部分及 控制部分)
b. Portlet fragment (Portlet 片段)
c. Portlet window (Portlet 視窗)
d. Portlet page (Portlet 頁面)