|Apache | Portals | WSRP4J|
WSRP Consumer Architecture
The Producer and Consumer are provided with a very modular architecture enabling an easy exchange of module implementations. All modules excel by interfaces based on the WSRP object model hiding the portal's object model and thus gaining independence of changes in the portal implementation or design.
The Protocol Handler is a standalone Swing based application that implements the consuming portal and the browser functionality. It aggregates the integrated WSRP portlets and forwards all invocations together with relevant context and request information to the remote WSRP service. The SwingConsumer thereby uses the ConsumerEnvironment to collect all data required for a WSRP call.
WSRP Object Model
Most of the WSRP object model is being generated from the WSRP specification's WSDL types.
The PortletDriver is the task oriented abstraction of the generated WSRP stubs for markup and action invocation.
The stubs generated by the axis SOAP implementation. The stubs are also implementing the cookie handling - for more details see SessionHandler below.
The ProducerRegistry stores and manages details about producer portals from which portlets were integrated or shall be integrated.
The WSRP consumer implementation session handling is based on the SOAP stack's session handling. The generated SOAP stubs are doing the cookie handling and are caching the cookies in instance variables. This means that one stub object instance is equivalent to one HTTP session which we map to one WSRP session (initCookie wise). When a WSRP session did time out an InvalidCookie exception is being thrown and a new session must be established.
The URLHandler is responsible for the URL rewriting of the WSRP URLs embedded in the markup received from the remote portlet.
The PortletRegistry stores and provides access to WSRP specific data and descriptions of a remote Portlet.
The UserRegistry is in the Swing consumer case very simplistic. As the browser is integrated there is always only one "dummy" user being managed.