What does a portlet bridge do?

亡梦爱人 提交于 2019-12-05 15:27:04

From the spec linked by Jeremy Walton above.

2.1 What is a Portlet Bridge?

The Java™ Portlet Specification defines a set of APIs for directly implementing a portlet. A portlet bridge is a technology used by a portlet to bridge to an execution environment where differing abstractions are used for rendering markup or processing user interactions. Typically these are well-known, possibly standard web development environments. Examples include JavaServer™ Faces and Apache Struts.

The portlet bridge acts as the translation engine between the portlet environment and the targeted system. It expresses the portlet request context to the bridged environment, executes the request and transforms the response as appropriate for the portlet environment. It provides an abstraction of the portlet environment for the bridged environment, and for developers working within the bridged environment. These developers are freed to execute Faces views as portlets, without the need to understand the details of the portlet APIs and development model.

To put it simply, a portlet bridge is the technology that allows a Java web developer to execute views developed using other web programming abstractions as portlets without needing to know and or learn about portlet development, concepts, or APIs.

The Portlet Bridge for JavaServer™ Faces is the specific bridge technology needed to support this bridging behavior for JavaServer™ Faces.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!