You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Patrick Trainor <Pa...@smarttech.com> on 2010/12/20 17:38:43 UTC
RESTful portlet URLs
Does anyone know if there's a way to make a portlet URL user friendly/REST-like? For example, rather than
http://localhost:8080/jetspeed/portal/_ns:YnRlbXBsYXRlLXRvcDJfX3BhZ2UtdGVtcGxhdGVfX2RwLTFfX2RwLTIzfGMwfGQxfGY_
I would like to somehow redefine the URL as:
http://localhost:8080/jetspeed/portal/my_admin_portlet/users
I know there's a Rest API for portlet administration; I'm looking for a way to invoke the portlets themselves.
There's a feature in the Liferay portal called FriendlyURLMapper (http://www.liferay.com/community/wiki/-/wiki/Main/FriendlyURLMapper). I guess my question could be rephrased as: Is there an equivalent for Apache Jetspeed 2?
Thanks,
Patrick
Re: RESTful portlet URLs
Posted by Woonsan Ko <wo...@yahoo.com>.
Hi Patrick,
I don't think there's any built-in support for that.
However, I'd like to mention that there are much of API and custom assembly supports anyway with JS-2.2.1.
For example, you can add your custom JAX-RS service component (See jetspeed-restful-services.xml). You can retrieve current request portal path with additional information. (See PageLayoutService.java)
Also, you can invoke a specific portlet to render or to serve resource request. (See ResourceValveImpl). Also, refer to the portlet pipeline with PortletAggregatorImpl.java as an example if you want to have another pipeline instead of adding a custom JAX-RS service bean.
Regards,
Woonsan
--- On Mon, 12/20/10, Patrick Trainor <Pa...@smarttech.com> wrote:
> From: Patrick Trainor <Pa...@smarttech.com>
> Subject: RESTful portlet URLs
> To: "jetspeed-dev@portals.apache.org" <je...@portals.apache.org>
> Date: Monday, December 20, 2010, 5:38 PM
> Does anyone know if there's a way to
> make a portlet URL user friendly/REST-like? For example,
> rather than
>
> http://localhost:8080/jetspeed/portal/_ns:YnRlbXBsYXRlLXRvcDJfX3BhZ2UtdGVtcGxhdGVfX2RwLTFfX2RwLTIzfGMwfGQxfGY_
>
> I would like to somehow redefine the URL as:
>
> http://localhost:8080/jetspeed/portal/my_admin_portlet/users
>
> I know there's a Rest API for portlet administration; I'm
> looking for a way to invoke the portlets themselves.
>
> There's a feature in the Liferay portal called
> FriendlyURLMapper (http://www.liferay.com/community/wiki/-/wiki/Main/FriendlyURLMapper).
> I guess my question could be rephrased as: Is there an
> equivalent for Apache Jetspeed 2?
>
>
> Thanks,
>
> Patrick
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org